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.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
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": "*"
}

Keywords

FAQs

Package last updated on 30 Mar 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