nsset

1.0.17 • Public • Published

Add a value to an object using a namespace

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

Readme

Keywords

Package Sidebar

Install

npm i nsset

Weekly Downloads

0

Version

1.0.17

License

MIT

Unpacked Size

5.99 kB

Total Files

7

Last publish

Collaborators

  • jgi