1.0.0 • Published 7 years ago
prepend-to-npm-script v1.0.0
prepend-to-npm-script
Helps you prepend to npm scripts.
Usage
Example
const prependToNpmScript = require('prepend-to-npm-script')
prependToNpmScript('test', 'echo this, first').then(() => console.log('done'))
Now, if your test script was echo testing
, it is now echo this, first && echo testing
.
API
prependToNpmScript(name, script)
name
: the name of the script to prepend toscript
: the script to prepend
Returns empty promise.
1.0.0
7 years ago