LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

npm-pkg

manipulates package

TLDR

Get package.json field
$ npm pkg get [name]
copy
Set package.json field
$ npm pkg set [name]="[value]"
copy
Delete field
$ npm pkg delete [field]
copy
Get multiple fields
$ npm pkg get [name] [version]
copy
Set nested field
$ npm pkg set [scripts.test]="[jest]"
copy

SYNOPSIS

npm pkg [command] [options]

DESCRIPTION

npm pkg manipulates package.json fields. Read and write properties programmatically.The command modifies package.json. Useful for scripts and automation.

PARAMETERS

COMMAND

Pkg subcommand.
get FIELD
Read field value.
set FIELD=VALUE
Write field value.
delete FIELD
Remove field.
--help
Display help information.

INSTALL

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

CAVEATS

Modifies package.json. Supports JSON paths. Use quotes for values.

HISTORY

npm pkg provides package.json manipulation from the command line.

SEE ALSO

npm(1), npm-init(1), npm-version(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