This package has been deprecated

Author message:

This package is no longer supported, use at your own risk.

sol-merge

0.0.1 • Public • Published

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)

Readme

Keywords

none

Package Sidebar

Install

npm i sol-merge

Weekly Downloads

1

Version

0.0.1

License

none

Last publish

Collaborators

  • solhive