node-hstore

0.0.1 • Public • Published

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" } 
   ...
 });

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    3

Package Sidebar

Install

npm i node-hstore

Weekly Downloads

3

Version

0.0.1

License

none

Last publish

Collaborators

  • scarney