inout
1.0.3 • Public • Published In Out
npm install inout --save
Example: find.js
var In = require('inout');
In(process.argv)
(function (data) { return data.splice(2); })
(function (data) { return data[0]; })
(function (data) { console.log('Find: ', data); return data; })
(function (data) {
var exec = require('child_process').exec;
var child = exec('ls -a | grep ' + data, function(err, stdout, stderr) {
console.log(stdout);
});
return data;
});
Run:
node find.js package
Output:
Find: package
package.json
Readme
Keywords
nonePackage Sidebar
Install
Weekly Downloads