LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

npm-run

executes scripts defined in package

TLDR

Run script from package.json
$ npm run [script-name]
copy
List available scripts
$ npm run
copy
Run with arguments
$ npm run [script] -- [--flag]
copy
Run silently
$ npm run [script] --silent
copy
Run if exists
$ npm run [script] --if-present
copy

SYNOPSIS

npm run [script] [-- args]

DESCRIPTION

npm run executes scripts defined in package.json. Core workflow command.The command runs scripts section. Passes additional arguments after --.

PARAMETERS

SCRIPT

Script name from package.json.
ARGS
Arguments to pass to script.
--silent
Suppress output.
--if-present
Don't fail if missing.
--help
Display help information.

INSTALL

sudo pacman -S npm
copy
sudo apk add npm
copy
brew install npm
copy

CAVEATS

Scripts in package.json. Use -- for script args. Alias: npm run-script.

HISTORY

npm run is the primary mechanism for executing project-defined scripts.

SEE ALSO

npm(1), npm-start(1), npm-test(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid