cleanup-package-json

0.2.1 • Public • Published

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
}
Argument Type Default Description
include [arg: string]: Array<string> none Parts that must be included.
exclude [arg: string]: Array<string> none Parts that will be removed (Lower priority then include).
backup boolean true Backups package.json to package.bak.json.
writeChanges boolean true Writes changes to package.json.

License

Released under the PGL-3.0 license.

Dependents (0)

Package Sidebar

Install

npm i cleanup-package-json

Weekly Downloads

1

Version

0.2.1

License

GPL-3.0

Last publish

Collaborators

  • quatrodev