s-to-o
Convert an string into an object
Install
npm install s-to-o
Usage
const sto = ; console;// => { a: '1', b: '2', c: '3', d: '4' }
API
sto(input)
Type: function
Return Type: object
A replacement for JSON.parse() which converts an string into an object.
input
Type: string
String to be parsed.
Related
- str-to-arr: Add words from a string to an array
License
MIT © Abraham Hernandez