get-string-object

1.0.2 • Public • Published

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.

/get-string-object/

    Package Sidebar

    Install

    npm i get-string-object

    Weekly Downloads

    3

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    10.1 kB

    Total Files

    10

    Last publish

    Collaborators

    • faramj