Socket
Socket
Sign inDemoInstall

depz

Package Overview
Dependencies
84
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    depz

Set dependencies in package.json


Version published
Weekly downloads
6
increased by500%
Maintainers
1
Install size
3.25 MB
Created
Weekly downloads
 

Readme

Source

A nice little tool for when you forget to npm install --save. It inspects your node_modules directory, pulls out module names and versions and either merges them into your package.json or replaces them outright.

Usage

Resets package.json dependencies using a pretty interactive process.

Usage: packager [options]

Options:
  -c, --clear     Wipe all dependencies and devDependencies (start from scratch).  [default: 1]
  -m, --modifier  Which npm version prefix to add.                                 [default: "~"]
  -y, --yes       Assumes you want to add all node_modules to package.json.

Example

Which do you want to include in your package.json? Type y, n or dev (to add to devDependencies). Type explicit version number to override.

prompt: async [0.2.9]:  (y)
prompt: colors [0.6.2]:  (y)
prompt: glob [3.2.7]:  (y)
prompt: optimist [0.6.0]:  (y)
prompt: prompt [0.2.12]:  (y)
prompt: underscore [1.5.2]:  (y)

Writing out new package.json.

Keywords

FAQs

Last updated on 23 Dec 2013

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