Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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).