imsnif/synp: Convert yarn.lock to package-lock.json and vice versa

Coverage Status JavaScript Style Guide

Convert yarn.lock to package-lock.json and vice versa.

install

npm install -g synp

command line usage

yarn.lock => package-lock.json

yarn # be sure the node_modules folder dir and is updated
synp --source-file /path/to/yarn.lock
# will create /path/to/package-lock.json

package-lock.json => yarn.lock

npm install # be sure the node_modules dir exists and is updated
synp --source-file /path/to/package-lock.json
# will create /path/to/yarn.lock

programmatic usage

const { npmToYarn, yarnToNpm...

Read the entire article at the source link…

We're happy to share this resource that we found. The content displayed on this page is property of it's original author and/or their organization.

Leave a Reply