check-pkg-cli

1.0.3 • Public • Published

check-pkg-cli

NPM Version NPM Downloads

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

License

MIT

Package Sidebar

Install

npm i check-pkg-cli

Weekly Downloads

2

Version

1.0.3

License

MIT

Unpacked Size

6.98 kB

Total Files

4

Last publish

Collaborators

  • fcxie