0.0.1 • Published 11 years ago

sol-merge v0.0.1

Weekly downloads
8
License
-
Repository
github
Last release
11 years ago

sol-merge

A module for merging two objects and making sure that the types match.

Install

npm install sol-merge

Method: merge(source, objectToCopyFrom)

Example

var merge = require('sol-merge')

var DEFAULT_SETTINGS = {
  application: "A Demo.",
  port: 3000
}

var USER_SETTINGS = {
  port: "80", // This should not merge...
  application: "A very cool demo."
}

var applicationSettings = merge(DEFAULT_SETTINGS, USER_SETTINGS)