Socket
Socket
Sign inDemoInstall

add-pkg

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

add-pkg

Install the package with your package manager


Version published
Weekly downloads
1
decreased by-80%
Maintainers
1
Weekly downloads
 
Created
Source

img

What's this?

add-pkg provides some package manager installation commands in one command. ♨︎

For example, you can write in one line how to install your package.

🙄 Before:

npm install <your-package> # npm
yarn add <your-package> # yarn
# another command...

✨ After:

npx add-pkg <your-package>

Supporting package managers

Isn't your favorited package manager listed here? Please create issue/PR here! 😆

Usage

Install to dependencies

npx add-pkg <your-package>

Install to devDependencies

  • -d or -D or --dev
npx add-pkg <your-package> -d

Install to global

  • -g or -G or --global
npx add-pkg <your-package> -g

Run dry-run

Check the command to be executed

npx add-pkg <your-package> --dry-run

Priority of the package manager

  1. A package manager that is installed and also has a lockfile
  2. Installed package manager (npm excluded)
  3. npm

License

FAQs

Package last updated on 10 Dec 2019

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