Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/negativetwelve/merge-pkg
Merges multiple package.json files together preserving key order and sorting dependencies
https://github.com/negativetwelve/merge-pkg
Last synced: 17 days ago
JSON representation
Merges multiple package.json files together preserving key order and sorting dependencies
- Host: GitHub
- URL: https://github.com/negativetwelve/merge-pkg
- Owner: negativetwelve
- Created: 2017-11-19T05:07:57.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-19T06:47:22.000Z (almost 7 years ago)
- Last Synced: 2024-10-19T15:59:54.231Z (28 days ago)
- Language: JavaScript
- Size: 54.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# merge-pkg
[![npm](https://img.shields.io/npm/v/merge-pkg.svg)](https://www.npmjs.com/package/merge-pkg)
[![npm](https://img.shields.io/npm/dt/merge-pkg.svg)](https://www.npmjs.com/package/merge-pkg)
[![npm](https://img.shields.io/npm/l/merge-pkg.svg)](https://github.com/negativetwelve/merge-pkg/blob/master/LICENSE)Merge multiple package.json files together preserving key order and sorting dependencies.
## Getting Started
Install `merge-pkg` using `yarn`:
```shell
yarn add merge-pkg
```## Usage
```javascript
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](https://github.com/negativetwelve/merge-pkg/issues) or [submit a PR](https://github.com/negativetwelve/merge-pkg/pulls).