A simple zero-dependency, 2 line, bash script that proxies npm run
to nqr
to make npm scripts just a little easier to run.
npm i nqr --save-dev
# before
npm run do-something
# after
nqr do-something
{
"name": "your-package",
"scripts": {
"foo": "echo \"foo\"",
"bar": "echo \"bar\"",
"foobar": "npm run foo && npm run bar"
}
}
{
"name": "your-package",
"scripts": {
"foo": "echo \"foo\"",
"bar": "echo \"bar\"",
"foobar": "nqr foo && nqr bar"
}
}