rodbe-io / nsl

NSL ⚡️ Easy & Fast way to run npm scripts 📦
https://www.npmjs.com/package/@rodbe/nsl
MIT License
2 stars 0 forks source link

NSL ⚡️ - Node Script List

List, fuzzy search and run scripts from any type of project

Easy and fast way to run npm scripts 🚀

Install ⚙️

npm i -g @rodbe/nsl

if you have a permission error, try to install with administrator privileges

Usage 🏎️

Just run the command and search for the script you want to run.

nsl

nsl

Arguments

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

Configuration file

You can configure NSL via (in order of precedence):

Options

The options you can use in the configuration file.

Option Type Description
ignoreScripts string[] scripts to ignore

Basic configuration

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',
  ],
};

Contributors are welcome 👋

License

MIT