object-augmenter

0.1.1 • Public • Published

Object Augmenter Build Status

Small utility to augment one JS object with another

The idea here that we are merging two JS objects like a trees (in depth). There are no special rules or arguments. The augmenter can contain only the fields that are needs to be updated plus extrs ones if needed.

Installation

npm install object-augmenter

Usage

var augment = require('object-augmenter');

var person = {
  name: {
    first: "John",
    second: "Dough"
  }
};

augment(person, {name: {second: "Doe"}, dob: "01.01.1970"});

License

MIT

/object-augmenter/

    Package Sidebar

    Install

    npm i object-augmenter

    Weekly Downloads

    1

    Version

    0.1.1

    License

    MIT

    Last publish

    Collaborators

    • kalambet