0.2.1 • Published 8 years ago

cleanup-package-json v0.2.1

Weekly downloads
4
License
GPL-3.0
Repository
github
Last release
8 years ago

cleanup-package-json

Get started

$ npm install cpj -g

Features

  • Removes unnecessary parts of package.json.

Usage

$ cpj --help

Examples

Default config:

Default config name is cpj.config.json.

$ cpj

With custom file config:

$ cpj -c custom-config.json

Config example

{
    "include": {
        "scripts": ["test"]
    },
    "exclude": {
        "keywords": ["*"],
        "scripts": ["*"]
    },
    "backup": true
}
ArgumentTypeDefaultDescription
includearg: string: Array\<string>noneParts that must be included.
excludearg: string: Array\<string>noneParts that will be removed (Lower priority then include).
backupbooleantrueBackups package.json to package.bak.json.
writeChangesbooleantrueWrites changes to package.json.

License

Released under the PGL-3.0 license.

0.2.1

8 years ago

0.2.0

8 years ago

0.1.0

8 years ago

0.0.1

8 years ago