Reads and manages npm scripts from package.json.
Provides the npm run functionality — listing, filtering,
and determining execution order of scripts defined in package.json.
Summary
Functions
Categorizes scripts into well-known and custom.
Returns the execution order for a script, including pre/post hooks.
Returns scripts matching a pattern.
Formats a scripts map for display.
Checks if a script exists.
Returns pre/post hooks for a script.
Lists all available script names.
Reads all scripts from a package.json file.
Functions
Categorizes scripts into well-known and custom.
Returns the execution order for a script, including pre/post hooks.
Returns scripts matching a pattern.
Formats a scripts map for display.
Checks if a script exists.
Returns pre/post hooks for a script.
Lists all available script names.
Reads all scripts from a package.json file.