nodescript-cli
v1.0.2
Published
`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.
Downloads
8
Maintainers
Readme
nscli
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.
Installation
You can install nscli
globally via npm to access it from anywhere in your terminal:
npm install -g nodescript-cli
Usage
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.
Example
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.
Contributing
Contributions are welcome! Feel free to open an issue or submit a pull request on GitHub: nscli GitHub Repository
License
This project is licensed under the MIT License - see the LICENSE file for details.