Niche.js
Never write nested javascript objects ever again with complicated or convoluted code
example
> var niche = require('niche');
> var n = niche();
> var myNestedObject = n.make('hello', 'world', 'yes', 'no', 'thisisawesome');
> {
hello: {
world: {
yes: {
no: {
thisisawesome: {}
}
}
}
}
}
methods
var n = require('niche')
niche(s)
Builts a recursive object by simply passing in function arguments without requiring building a nested literal object.
install
With npm do:
npm install niche