1.0.2 • Published 5 years ago
get-string-object v1.0.2
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.
1.0.2
5 years ago