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.

    Install

    npm i get-string-object

    DownloadsWeekly Downloads

    1

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    10.1 kB

    Total Files

    10

    Last publish

    Collaborators

    • faramj