Skip to content

GuillaumeIsabelle/nsset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

NodeJS module Add a value to an object using a namespace

Resources

License

Stars

Watchers

Forks

Packages

No packages published