Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

shrinkwrap-to-lockfile

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shrinkwrap-to-lockfile

Migrate your npm shrinkwrap to a yarn lockfile.

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

NPM Shrinkwrap to Yarn lockfile

Migrate your npm-shrinkwrap.json to a yarn lockfile without a headache!

The migration consists of three steps:

  • extract the dependency versions from the npm-shrinkwrap.json;
  • save and lock down these versions in the package.json (by removing the version leniency, i.e. ~ and ^);
  • generate a new yarn.lock file from the updated package.json.

Installation

yarn global add shrinkwrap-to-lockfile

How to use

shrinkwrap-to-lockfile [npm-shrinkwrap-file] [package-file]

That's it!

Keywords

migrate

FAQs

Package last updated on 21 Jun 2017

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