Skip to content
Merge package.json using local, base, and remote
Branch: master
Clone or download
Pull request Compare This branch is 20 commits behind kellyselden:master.
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.
src
test
.editorconfig
.eslintrc.js
.gitignore
.npmignore
.travis.yml
LICENSE
README.md
package-lock.json
package.json
renovate.json

README.md

merge-package.json

Greenkeeper badge npm version Build Status

Merge package.json using local, base, and remote

  • Preserves ordering
  • Follows SemVer
  • Uses best guess to resolve conflicts
const mergePackageJson = require('merge-package.json');

let merged = mergePackageJson(local, base, remote);
You can’t perform that action at this time.