List, fuzzy search and run scripts from any type of project
Easy and fast way to run npm scripts 🚀
npm i -g @rodbe/nsl
if you have a permission error, try to install with administrator privileges
Just run the command and search for the script you want to run.
nsl
Argument | Alias | Description | Comment |
---|---|---|---|
--all | -a | list all scripts | by default lifecycle scripts are ignored |
--info | -i | get all info tech for debugging | |
--version | -v | get current version |
You can configure NSL via (in order of precedence):
.nslrc
file written in JSON.nslrc.json
file.nslrc.js
file written in ES module that exports an object using export default
.nslrc.cjs
file written in CommonJS module that exports an object using module.exports
The options you can use in the configuration file.
Option | Type | Description |
---|---|---|
ignoreScripts | string[] | scripts to ignore |
JSON: .nslrc
o .nslrc.json
file
{
"ignoreScripts": [
"any-script-name-to-ignore",
"other-script-name-to-ignore",
"another-script-name-to-ignore"
]
}
JS (ES Modules): .nslrc.js
file
export default {
ignoreScripts: [
'any-script-name-to-ignore',
'other-script-name-to-ignore',
'another-script-name-to-ignore',
],
};
CJS (CommonJS): .nslrc.cjs
file
module.exports = {
ignoreScripts: [
'any-script-name-to-ignore',
'other-script-name-to-ignore',
'another-script-name-to-ignore',
],
};
MIT