Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Webpack Dev Server | 7,624 | 435,215 | 77,958 | 8 hours ago | 203 | September 19, 2022 | 55 | mit | JavaScript | |
Serves a webpack app. Updates the browser on changes. Documentation https://webpack.js.org/configuration/dev-server/. | ||||||||||
Npm Run All | 4,663 | 44,017 | 28,492 | a year ago | 58 | November 24, 2018 | 84 | mit | JavaScript | |
A CLI tool to run multiple npm-scripts in parallel or sequential. | ||||||||||
Nps | 1,391 | 930 | 645 | a year ago | 36 | July 10, 2020 | 25 | mit | JavaScript | |
NPM Package Scripts -- All the benefits of npm scripts without the cost of a bloated package.json and limits of json | ||||||||||
Ultra Runner | 1,133 | 5 | a month ago | 45 | February 28, 2021 | 37 | apache-2.0 | TypeScript | ||
🏃⛰ Ultra fast monorepo script runner and build tool | ||||||||||
Awesome Npm Scripts | 672 | 8 months ago | cc0-1.0 | |||||||
Everything awesome related to npm scripts and using npm as a build tool. | ||||||||||
Better Npm Run | 641 | 3,485 | 637 | 9 months ago | 17 | July 31, 2018 | 3 | mit | JavaScript | |
🏃♂️ Better NPM scripts runner | ||||||||||
Tasksfile | 352 | 239 | 327 | 7 months ago | 43 | January 25, 2019 | mit | TypeScript | ||
Minimalistic task runner for node.js | ||||||||||
Vscode Npm Scripts | 208 | 4 months ago | 2 | mit | TypeScript | |||||
VSCode extension for running npm-scripts and validating the package.json files. | ||||||||||
Npm Run | 179 | 1,585 | 254 | 5 years ago | 14 | April 12, 2018 | 6 | mit | JavaScript | |
Run locally-installed node module executables. | ||||||||||
Node Themekit | 116 | 82 | 45 | a year ago | 24 | June 23, 2021 | 24 | mit | JavaScript | |
Theme asset interaction library and management tools written in Node.js |
Use npm-run
to ensure you're using the same version of a package on the command-line and in package.json scripts.
Any executable available to an npm lifecycle script is available to npm-run
.
> npm install mocha # mocha installed in ./node_modules
> npm-run mocha test/* # uses locally installed mocha executable
> npm-run --help
Usage: npm-run command [...args]
Options:
--version Display version & exit.
--help Display this help & exit.
Hint: to print augmented path use:
npm-run node -p process.env.PATH
> npm install -g npm-run
The API of npm-run
basically wraps core child_process
methods (exec, spawn, etc) such that locally install package executables will be on the PATH when the command runs.
Alias of npmRun.exec.
Takes same arguments as node's exec.
npmRun.exec('mocha --debug-brk --sort', {cwd: __dirname + '/tests'}, function (err, stdout, stderr) {
// err Error or null if there was no error
// stdout Buffer|String
// stderr Buffer|String
})
Alias of npmRun.execSync
Takes same arguments as node's execSync.
var stdout = npmRun.execSync(
'mocha --debug-brk --sort',
{cwd: __dirname + '/tests'}
)
stdout // command output as Buffer|String
Takes same arguments as node's spawnSync.
var child = npmRun.spawnSync(
'mocha',
'--debug-brk --sort'.split(' '),
{cwd: __dirname + '/tests'}
)
child.stdout // stdout Buffer|String
child.stderr // stderr Buffer|String
child.status // exit code
Takes same arguments as node's spawn.
var child = npmRun.spawn(
'mocha',
'--debug-brk --sort'.split(' '),
{cwd: __dirname + '/tests'}
)
child.stdout // stdout Stream
child.stderr // stderr Stream
child.on('exit', function (code) {
code // exit code
})
Due to npm's install algorithm node_modules/.bin
is not guaranteed to contain your executable. npm-run
uses the same mechanism npm uses to locate the correct executable.
MIT