conf-merge
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

Conf Merge

Deep merges objects, concatenating arrays.

Install

npm install --save conf-merge

Usage

import confMerge from 'conf-merge';

const obj1 = {
  foo: [1, 2],
  bar: {
    baz: true
  }
};

const obj2 = {
  foo: [3, 4],
  bar: {
    qux: true
  }
};

confMerge ( {}, obj1, obj2 );
// => {
//   foo: [1, 2, 3, 4],
//   bar: {
//     baz: true,
//     qux: true
//   }
// }

License

MIT © Fabio Spampinato

Package Sidebar

Install

npm i conf-merge

Weekly Downloads

11

Version

2.0.1

License

none

Unpacked Size

6.63 kB

Total Files

12

Last publish

Collaborators

  • fabiospampinato