nscli
is a Node.js CLI tool that allows you to easily run scripts defined in your package.json file. It provides a simple interface for selecting and executing scripts from the terminal.
You can install nscli
globally via npm to access it from anywhere in your terminal:
npm install -g nodescript-cli
After installing nscli
, you can run it in your terminal by typing nscli
and pressing Enter. This will detect your preferred package manager based on the presence of lock file in the current directory.
nscli
will then display a list of scripts defined in your package.json file. Use the arrow keys to navigate the list and press Enter to run the selected script.
Let's say you have the following scripts defined in your package.json file:
{
"name": "my-project",
"version": "1.0.0",
"scripts": {
"start": "node server.js",
"test": "jest",
"build": "webpack"
}
}
Running nscli
in your terminal will present you with the following options:
? Select a script to run: (Use arrow keys)
start
> test
build
Navigate the list using the arrow keys, then press Enter to run the selected script.
This package is compatible with Node versions higher than 15.x
If you are experiencing compatibility issues with a specific version of Node.js, please open an issue so we can investigate and address the problem.
Contributions are welcome! Feel free to open an issue or submit a pull request on GitHub: nscli GitHub Repository
This project is licensed under the MIT License - see the LICENSE file for details.