What is nps?
masternps (npm-package-scripts) is a tool that allows you to move your npm scripts from a bloated package.json file into a dedicated package-scripts.js or package-scripts.yml file. This provides several advantages over JSON:
- Comments: You can add documentation directly within your script definitions.
- Logic: Since
package-scripts.jsis a JavaScript file, you can use variables, functions, and logic to define scripts. - Maintainability: Avoids the unmaintainable mess of large JSON files.
- Advanced Execution: Supports running scripts concurrently or in sequence using utilities like
nps-utils.