Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    node-hstorepublic

    node-hstore

    A node package for serializing and deserializing JSON data to hstore format

    Install node-hstore

     ```$ npm install node-hstore```
    

    Usage

    stringify

     var hstore = require('node-hstore');
     var source = { foo: "oof", bar: "rab", baz: "zab" };
     hstore.stringify(source, function(result) {
       ...
       // result = '"foo"=>"oof", "bar"=>"rab", "baz"=>"zab"'
       ...
     });
    

    parse

     var hstore = require('node-hstore');
     var source = '"foo"=>"oof", "bar"=>"rab", "baz"=>"zab"';
     hstore.stringify(source, function(result) {
       ...
       // result = { foo: "oof", bar: "rab", baz: "zab" } 
       ...
     });

    Keywords

    none

    install

    npm i node-hstore

    Downloadsweekly downloads

    5

    version

    0.0.1

    license

    none

    last publish

    collaborators

    • avatar