Socket
Socket
Sign inDemoInstall

organize-pkg

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    organize-pkg

very simple package.json organizer


Version published
Maintainers
1
Install size
6.09 kB
Created

Readme

Source

organize package json (organize-pkg) MIT

Assists in creating package.json for production.

install

npm i organize-pkg -D

usage

organize-pkg -keys "<key>,<key>,..." -out ./output.json
  • version 1.2.2, synonym command orgpkg

    orgpkg -p -o ./output.json [-k "<key>,<key>,..."]
    
  • Since version 1.2.1, shorthand option is available.

    • -p same as -prod
    • -k same as -keys
    • -o same as -out
# file name is output as "./dist/package.json"
>organize-pkg -keys "defs,//" -out ./dist
>organize-pkg -k "defs,//" -o ./dist

# file name is output as "./dist/output.json"
>organize-pkg -keys "defs,//" -out ./dist/output.json
>organize-pkg -k "defs,//" -o ./dist/output.json
  • Delete the devDependencies property required during development
organize-pkg -keys "devDependencies" -out ./dist
  • Remove any property
organize-pkg -keys "defs,//" -out ./dist

If you don't need to run a script such as "postinstall"

when installing the desired module with (yarn|npm) install,

specify "-prod" option to specify properties such as "scripts", "devDependencies", "//<any text>?". Can be deleted.

In that case, the value of "-keys" option will be optional, and if it is specified it will be merged

organize-pkg -prod -out ./dist [-keys "defs"]
organize-pkg -p -o ./dist [-k "defs"]

License

MIT

FAQs

Last updated on 19 May 2020

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc