string-2-object
v1.0.1
Published
convert a string to an object, 'parent.child.grandchild.name = "jim"' converts to { "parent" : { "child" : { "grandchild" : { "name: "jim" } } }
Downloads
2
Readme
string2Object
A module to parse a string separated by dots into an object.
const sto = new StringToObject('foo.bar.bab = "baz"');
sto.getString() // returns a stringified object
sto.getObject() // returns the object
//{ "foo" : { "bar" : { "bab" : "baz" } } }