nsset
v1.0.17
Published
Add a value to an object using a namespace
Downloads
11
Readme
Install
npm i -D nsset
Usage
var nsset = require('nsset');
var txt = "hello world";
var target = "HOME.FOOTER.MYNOTES";
var o2 = new Object();
nsset.set(target,o2,txt);
Example
var nsset = require('nsset');
var txt = "hello world";
var target = "HOME.FOOTER.MYNOTES";
var o2 = new Object();
o2.whatever = "something";
nsset.set(target,o2,txt);
console.log("Object created :" );
console.log(o2);
License
MIT © Guillaume Isabelle