Skip to content
A command-line tool for converting projects that use Yarn to npm.
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
src
.eslintrc.json Add initial code May 3, 2018
.gitignore Add initial code May 3, 2018
CHANGELOG.md
README.md Re-add readme instruction on being in project directory Jun 16, 2018
package-lock.json 1.0.2 Jun 18, 2018
package.json

README.md

deyarn

A command-line tool for converting projects that use yarn to npm.

The follow-up to npm2yarn. See https://mixmax.com/blog/to-yarn-and-back-again-npm for motivation.

Procedure

deyarn:

  1. Removes yarn.lock if it exists
  2. Removes node_modules to avoid any installation conflicts
  3. Installs your project dependencies using npm, generating a package-lock.json file
  4. Logs a list of manual steps to be taken to complete the transition

This conversion will likely involve the upgrading of some/many of your transitive dependencies, so make sure to test thoroughly! :)

Installation

$ npm install -g deyarn

or

$ yarn global add deyarn

Usage

(in the directory of the project to convert)

$ deyarn

Contributing

We welcome your pull requests! Please lint your code.

Changelog

  • 1.0.0 Add initial code
You can’t perform that action at this time.