get-string-object
v1.0.2
Published
Make js object with given string
Downloads
3
Readme
Get String Object
Make js object with given string
Install
Install with npm:
$ npm install --save get-string-object
const getObject = require('get-string-object');
getObject(); // {}
getObject('{"foo":"bar"}'); // {"foo":"bar"}
getObject('{"foo":"bar}'); // {}
Running tests
$ node test.js
License
Released under the MIT License.