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

Package detail

nua

rjrodger36.7kMIT2.0.1TypeScript support: included

Reference-preserving merge

readme

nua

npm version Build Status Coverage Status Dependency Status DeepScan grade

Reference-preserving merge.

  var base = {a:{b:1}}
  var base_a = base.a
  var src = {a:{b:2}}

  Nua(base,src)
  expect(base).equal({a:{b:2}})
  expect(base_a === base.a).true()

Install

npm install nua

Notes

From the Irish nua. Pronounced noo-ah.

License

Copyright (c) 2014-2016, Seamus D'Arcy and other contributors. Licensed under MIT.