zappy
Create complex objects rapidly from strings.
Make
var obj = zappy.tree('obj1.obj2.data', 20);
Instead of
var obj = {
obj1: {
obj2: {
data: 20;
}
}
}
Useful for
- Defining quickly fake data for unit testing
- Whatever you want
Create complex objects rapidly from strings.
var obj = zappy.tree('obj1.obj2.data', 20);
var obj = {
obj1: {
obj2: {
data: 20;
}
}
}
npm i zappy
1
0.0.3
ISC