Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cleanup-package-json

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cleanup-package-json

Cleans package.json file.

  • 0.2.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
21
increased by250%
Maintainers
1
Weekly downloads
 
Created
Source

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
include[arg: string]: Array<string>noneParts that must be included.
exclude[arg: 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.

FAQs

Package last updated on 08 Aug 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc