A command-line tool for converting projects that use Yarn to npm.
JavaScript
261
10 commits
updated Jul 2, 2026
deyarnA 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.
deyarn:
yarn.lock if it existsnode_modules to avoid any installation conflictsnpm, generating a package-lock.json fileThis conversion will likely involve the upgrading of some/many of your transitive dependencies, so make sure to test thoroughly! :)
You can use deyarn via npx to quickly convert a project without needing to install deyarn first. Just run the following command in your project directory:
npx deyarn
Note: The directory must be a Git repository.
Alternatively you can install deyarn globally (see below) and then run $ deyarn in your project directory instead.
npm install -g deyarn
or
yarn global add deyarn
We welcome your pull requests! Please lint your code.
JavaScript
100.0%
A command-line tool for converting projects that use Yarn to npm.
JavaScript
261
10 commits
updated Jul 2, 2026
deyarnA 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.
deyarn:
yarn.lock if it existsnode_modules to avoid any installation conflictsnpm, generating a package-lock.json fileThis conversion will likely involve the upgrading of some/many of your transitive dependencies, so make sure to test thoroughly! :)
You can use deyarn via npx to quickly convert a project without needing to install deyarn first. Just run the following command in your project directory:
npx deyarn
Note: The directory must be a Git repository.
Alternatively you can install deyarn globally (see below) and then run $ deyarn in your project directory instead.
npm install -g deyarn
or
yarn global add deyarn
We welcome your pull requests! Please lint your code.
JavaScript
100.0%