nl_tokens: Prepare options for use by an input generator .
pl_tokens: function prepOptions ( options , listener ) { // Ensure defaults are represented common . ensure ( <mask> , defaults ) ; // Normalize certain arguments if they are not functions. // The certain arguments are per-page options. // However, outputPath is a special case [ "selector" , "timeout" , "useJQuery" , "verbose" , "phantomjsOptions" ] . forEach ( function ( perPageOption ) { options [ perPageOption ] = normalize ( options [ perPageOption ] ) ; supplyMissingDefault ( options , perPageOption ) ; } ) ; options . _inputEmitter = new EventEmitter ( ) ; options . _inputEmitter . on ( "input" , listener ) ; }