$ npm install cpj -g- Removes unnecessary parts of
package.json.
$ cpj --helpDefault config:
Default config name is cpj.config.json.
$ cpjWith custom file config:
$ cpj -c custom-config.json{
"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. |
Released under the PGL-3.0 license.