package
Run exported function from any script passing in arguments from the command line. First argument can be passed in through stdin.
npm install effectuateGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Run exported function from any script passing in arguments from the command line. First argument can be passed in through stdin.
$ npm install -g effectuate// multiply.js
module.exports = (a, b) => a * b$ effectuate multiply 5 10
50// getName.js
module.exports = config => config.first + ' ' + config.last$ effectuate ./getName --first=John --last=Doe
John Doe// double.js
module.exports = n => n * 2$ echo 10 | effectuate-piped ./double
20Can also provide stdin line by line:
$ echo -e "1\n2\n3" | effectuate-byline ./double
2
4
6// delay.js
module.exports = value => new Promise(
resolve => setTimeout(() => resolve(value), 100)
)$ effectuate ./delay foo
fooEstimated unpacked size across 6 packages.
435.7 kB
Includes dependencies.
5 direct · 4 outdated
3.6.0
14.1.0
2.0.1
4.2.0
5.0.1
10.0.0
2.0.2
7.0.0
0.8.7
0.8.7