node package manager
Love JavaScript? Your insights can make it even better. Take the 2017 JavaScript Ecosystem Survey »

merge-pkg

merge-pkg

npm npm npm

Merge multiple package.json files together preserving key order and sorting dependencies.

Getting Started

Install merge-pkg using yarn:

yarn add merge-pkg

Usage

import mergePkg from 'merge-pkg';
 
const merged = mergePkg(firstPackageJSON, secondPackageJSON, thirdPackageJSON);

Contributing

If you have any ideas on how this module could be better, create an Issue or submit a PR.