consts-overlay
v1.1.3
Published
Function to overlay a constants object
Downloads
16
Readme
consts-overlay
Function to overlay a constants object.
Installation
$ npm install consts-overlay
Usage
const consts = require('consts-overlay')
const Consts = consts({
FOO: 'foo',
BAR: 'bar',
}).overlay({
FOO: 'foofoo',
BAZ: 'baz' // ignored if a key is not in the original object
})
// {
// FOO: 'foofoo',
// BAR: 'bar'
// }