Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

npmlv

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npmlv

List module versions in your project in format easy to copy and paste to your package.json.

  • 0.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

npmlv: npm "list versions" command equivalent

Description

List module versions in your project in format easy to copy and paste to your package.json.

Install

[sudo] npm install npmlv -g

Usage

cd your_module_root_dir

To print dependencies on exact versions (treading safe):

npmlv

Prints:

{
    "async-mini": "0.1.0",
    "laeh2": "0.2.0",
    "mongodb": "0.9.7",
    "underscore": "1.1.7"
}

To print dependencies for floating patch versions:

npmlv -t

Prints:

{
    "async-mini": "~0.1.0",
    "laeh2": "~0.2.0",
    "mongodb": "~0.9.7",
    "underscore": "~1.1.7"
}

To print dependencies on exact and higher versions (optimistic):

npmlv -n

Prints:

{
    "async-mini": ">=0.1.0",
    "laeh2": ">=0.2.0",
    "mongodb": ">=0.9.7",
    "underscore": ">=1.1.7"
}

To print dependencies on any version (should be same as optimistic really, but feels more Lemonade Joe):

npmlv -a

Prints:

{
    "async-mini": "*",
    "laeh2": "*",
    "mongodb": "*",
    "underscore": "*"
}

To keep any urls defined as they are in your package.json. May be combined with other flags:

npmlv -k [-t]

Prints:

{
    "async-mini": "~0.1.0",
    "laeh2": "~0.2.0",
    "mongodb": "git://github.com/mongodb/node-mongodb-native.git",
    "underscore": "~1.1.7"
}

Keywords

FAQs

Package last updated on 26 Jul 2013

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