Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

sol-merge

joshuah6deprecated0.0.1

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

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

merge, objects, settings

readme

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)