Socket
Book a DemoInstallSign in
Socket

get-deps-cmd

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-deps-cmd

A simple way to get an install command from all your dependencies

1.0.2
latest
Source
npmnpm
Version published
Weekly downloads
3
200%
Maintainers
1
Weekly downloads
 
Created
Source

get-deps-cmd

Read a package.json and get the commands to install all dependencies for yarn and/or npm.

Installation

Yarn: yarn add global get-deps-cmd

NPM: npm install -g get-deps-cmd

Usage

Options:
  -v, --version        output the version number
  -p, --path <file>    path to package.json
  -y, --yarn-only      only show yarn commands
  -n, --npm-only       only show npm commands
  -s, --show-versions  get exact versions for packages
  -r, --prod-only      get only dependencies and not dev dependencies
  -h, --help           display help for command

Example

running get-deps-cmd in a directory containing a package.json file will output the following:

YARN DEPENDENCIES:

yarn add commander

YARN DEV DEPENDENCIES:

yarn add -D @commitlint/cli @commitlint/config-conventional @typescript-eslint/eslint-plugin @typescript-eslint/parser commitizen cz-conventional-changelog eslint eslint-config-prettier eslint-plugin-prettier husky lint-staged organize-imports-cli prettier pretty-quick standard-version typescript

NPM DEPENDENCIES:

npm install commander

NPM DEV DEPENDENCIES:

npm install --save-dev @commitlint/cli @commitlint/config-conventional @typescript-eslint/eslint-plugin @typescript-eslint/parser commitizen cz-conventional-changelog eslint eslint-config-prettier eslint-plugin-prettier husky lint-staged organize-imports-cli prettier pretty-quick standard-version typescript

Contributors

Built by @aniravi24 and @enaluz.

Keywords

dependencies

FAQs

Package last updated on 20 Mar 2020

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.