0.0.1 • Published 12 years ago

node-hstore v0.0.1

Weekly downloads
8
License
-
Repository
github
Last release
12 years ago

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