New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@korautils/peer-deps

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@korautils/peer-deps

A utility library designed to resolve peer dependency requirements for other packages. This tool simplifies the process of managing peer dependencies, ensuring compatibility and ease of use.

  • 1.0.4
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
0
Weekly downloads
 
Created
Source

@korautils/peer-deps

A utility library for handling peer dependencies in Node.js projects. This library automates the process of installing main packages along with their peer dependencies, ensuring that you don't miss any required dependencies during package installation.

Features

  • Detects the package manager (npm, yarn, or pnpm) based on lock files.
  • Installs both main packages and their peer dependencies.
  • Automatically handles missing peer dependencies by reading them from the respective package.json files of the packages in node_modules.

Installation

This library is meant to be used within your private project, so it's accessible publicly but not part of an open-source repository.

To install this library, use one of the following commands depending on your package manager:

Using npm

npm install --save-dev @korautils/peer-deps

Using yarn

yarn add --dev @korautils/peer-deps

Using pnpm

pnpm add --save-dev @korautils/peer-deps

Alternatively, you can use the tool directly with npx without installing it globally:

npx @korautils/peer-deps [package-names]

Usage

You can use this utility to install packages along with their peer dependencies directly from the command line.

npx @korautils/peer-deps [package-names]
  • [package-names] should be a list of the main packages you want to install (e.g., react, react-dom).
  • The tool will detect your package manager (npm, yarn, or pnpm) and install the packages along with any required peer dependencies automatically.

Example:

npx @korautils/peer-deps react react-dom

This will:

  • Install react and react-dom using your detected package manager.
  • Automatically install any missing peer dependencies for react and react-dom.

License

This library is licensed under the MIT License.

Author

  • John Jaider Vanegas
  • Email: jhonjaider100015@gmail.com
  • GitHub: johnjaider1000

Keywords

FAQs

Package last updated on 02 Dec 2024

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