NPM provides a very convenient nPm-scripts feature that lets us execute predefined commands such as NPM start from the command line. Json file, find the scripts field, add or remove script commands, and finally close the file.

So I open source the Nps-CLI library, so that you can easily manage nPm-scripts from the command line, via NPM installation:

$ npm install -g nps-cli

NPS – CLI provides three commands:

NPS ls Lists the command for the current scripts

NPS set key=value Sets a command in scripts

NPS remove key Deletes the corresponding command in scripts