![]() ![]() Var grep = require ( 'grep1' ) // Set buildArgs so grep(1) will count line numbers. This will make options global when options is not given to grep(, ) See node documentation for more infromation Options Same as grep(,, callback) except child_process.spawn() See node documentation for moreĬallback Function that is called when grep(1) process terminateĪrgs Same as grep(,, callback) ![]() Is given, child_process.execFile() is used. When calling child_process.execFile() or child_process.spawn(). This is the same options object that you would use Grep("some_phrase") the actual arguments given to grep(1) process isĮxecOptions Object that give options such as cwd to each grep(1) process. Set to a function that concatinate given args to an empty array. See options to change thisīuildArgs Function that build arguments for grep(1) processes. With an empty array and passed to grep(1) process. grep(,, callback)Īrgs The arguments given to grep(1) processes. Process's stdout is emitted as data events. Process's stderr is emitted as error events. When no callback, child_process.spawn() is used and returns a Grep object which is a When a callback is givenĬhild_process.execFile() is used and returns a Grep object which is a destroyed stream. This class wrap grep(1) using node's child_process module. Var req = require ( 'request' ) var search = grep ( 'examples' ) search. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |