Socket
Socket
Sign inDemoInstall

npm-install-peers

Package Overview
Dependencies
2
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    npm-install-peers

CLI command to install npm peerDependencies


Version published
Weekly downloads
24K
increased by0.11%
Maintainers
2
Install size
22.4 MB
Created
Weekly downloads
 

Readme

Source

NPM Install Peers

Software License npm

CLI command to install npm peerDependencies. This can be useful when developing modules.

Consider the following dependencies:

{
    "dependencies": {
        "react-router": "4.2.0"
    },
    "devDependencies": {},
    "peerDependencies": {
        "moment": "2.21.0"
    },
}

If you run this npm-install-peers command, moment will be installed because it's a direct peer dependency of your project. You'll still get a warning that react-router is missing a react peer dependency. You'll still need to install react yourself, this command only installs direct peer dependencies.

You probably don't need this package! It's generally a better idea to have your peerDependencies contents as devDependencies too.

Support us

We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products.

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall.

Postcardware

You're free to use this package (it's MIT-licensed), but if it makes it to your production environment you are required to send us a postcard from your hometown, mentioning which of our package(s) you are using.

Our address is: Spatie, Kruikstraat 22, 2018 Antwerp, Belgium.

The best postcards will get published on the open source page on our website.

Installation

npm install -g npm-install-peers

Usage

npm-install-peers

This will read out your package.json file and install all of its peerDependencies. There are no other options.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email freek@spatie.be instead of using the issue tracker.

Credits

About Spatie

Spatie is a webdesign agency in Antwerp, Belgium. You'll find an overview of all our open source projects on our website.

License

The MIT License (MIT). Please see License File for more information.

Keywords

FAQs

Last updated on 03 Feb 2021

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