0.1.1 • Published 8 years ago

object-augmenter v0.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

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