check-pkg-cli
Features
- use command to check package.json object key.
Installation
$ npm install -g check-pkg-cli or $ yarn global add check-pkg-cli
with 1 commands
- check-pck
Quick Start
The quickest way to get started with chceck-pkg is to utilize the executable check-pck
to check some key for package.json, as shown below:
Default
$ check-pkg will return: scripts:start:npm publish .
Check Other key in package.jsonn
$ check-pck -K dependencies or $ check-pck --key dependencies
If you want to check more, you should do like this:
$ check-pck -K dependencies,name,bugs,scripts or check-pck -key dependencies,name,bugs,scripts
Check other directory package.json:
$ check-pck -T ../tmp or $ check-pck -target ../tmp
Command Line Options
Usage: check-pkg [options] [dir] Options: -V, --version output the version number -K --key <items> the key which you want to check in package.json -T --target [value] the target package.json -h, --help output usage information