{"_id":"zenstorejs","_rev":"31-14104fe7975881bf054e104fc6ff356e","name":"zenstorejs","description":"Client API for zenstore","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"zenstorejs","version":"0.0.1","description":"Client API for zenstore","main":"index.js","author":{"name":"Johannes Boyne","email":"johannes@boyne.de"},"license":"MIT","devDependencies":{"tap":"~0.4.8"},"scripts":{"test":"tap test.js"},"dependencies":{"through":"~2.3.4"},"_id":"zenstorejs@0.0.1","dist":{"shasum":"9204aca4b29cadaffeab94f9c0130e3c3f680739","tarball":"https://registry.npmjs.org/zenstorejs/-/zenstorejs-0.0.1.tgz","integrity":"sha512-9Z7o67LQkAMQ/YCPRb3WITIjYCwnx4z4xqLdCMxJYrim4135WRgMh/P4AcmiIT9aNRBzQxBSNYaCqGFgQn4OXw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID4fuLwQrGJ8DaadwMFELQGG5hHZlhiAoCMm4LzR0w74AiEAmmDUvOi+fsEpyiCRGU/5FBhY+jcR/3gwdJcKmvpg63E="}]},"_from":".","_npmVersion":"1.3.2","_npmUser":{"name":"johannesboyne","email":"johannes@boyne.de"},"maintainers":[{"name":"johannesboyne","email":"johannes@boyne.de"}]},"0.0.2":{"name":"zenstorejs","version":"0.0.2","description":"Client API for zenstore","main":"index.js","author":{"name":"Johannes Boyne","email":"johannes@boyne.de"},"license":"MIT","devDependencies":{"tap":"~0.4.8"},"scripts":{"test":"tap test.js"},"dependencies":{"through":"~2.3.4"},"repository":{"type":"git","url":"git://github.com/johannesboyne/zenstorejs.git"},"bugs":{"url":"https://github.com/johannesboyne/zenstorejs/issues"},"_id":"zenstorejs@0.0.2","dist":{"shasum":"644bd961f981ef290ccab7188bf8de2eabb181de","tarball":"https://registry.npmjs.org/zenstorejs/-/zenstorejs-0.0.2.tgz","integrity":"sha512-BWWVzRFgwdqV9VzvF7xhiTlO0N0/+8dOnSo0XnQeEBYfjm7U38VRFZyZTdYy/POi2lPPvUHvA1JMT5mnLu+2Bw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFfwvUY7BD7PQwcrjraoR5+1IuaNjhNn+fLFJQseAxFEAiEAlle2a6uyKBajihcJha1kllA9n1pt9g+0Nxaf98DMv8c="}]},"_from":".","_npmVersion":"1.3.2","_npmUser":{"name":"johannesboyne","email":"johannes@boyne.de"},"maintainers":[{"name":"johannesboyne","email":"johannes@boyne.de"}]}},"readme":"#zenstorejs\n\nzenstorejs is the npm package for [zenstore](https://github.com/johannesboyne/zenstore). And it is very easy to use:\n\n```javascript\n// example: store something\nzenstorejs.store('http://localhost:1337/e90f161ac64790b7dbe155201ff4765a7a0de4c9',\n                 JSON.stringify({\n                   mytest: 1\n                 }),\n                 function (err, ret) {\n                   zenstorejs.get('http://localhost:1337/e90f161ac64790b7dbe155201ff4765a7a0de4c9', function (err, ret2) {\n                     t.equal(ret, ret2);\n                     t.equal(ret, JSON.stringify({mytest: 1}));\n                     t.end();\n                   });\n                 });\n\n// example: writing via pipe\nzenstorejs.createWritePipe('http://localhost:1337/e90f161ac64790b7dbe155201ff4765a7a0de4c9', function (zenPipe) {\n  zenPipe.write('{\"testtest\": 123}');\n});\n\n// example: listining on a zenstore storage \nzenstorejs.follow(argv.follow, argv.at, function (stream) {\n  stream.on('data', function (data) {\n    console.log('->'.bold.blue + ' received data:'.blue, data.toString().grey);\n  });\n});\n```\n\nBTW: Have you looked at [zenstorecli](https://github.com/johannesboyne/zenstorecli)?\n","maintainers":[{"name":"johannesboyne","email":"johannes@boyne.de"}],"time":{"modified":"2022-06-29T16:47:15.619Z","created":"2014-02-27T15:15:18.620Z","0.0.1":"2014-02-27T15:15:20.215Z","0.0.2":"2014-02-27T16:04:09.316Z","0.0.3":"2014-02-27T16:09:16.202Z","0.0.4":"2014-02-27T17:16:48.687Z"},"readmeFilename":"README.md","author":{"name":"Johannes Boyne","email":"johannes@boyne.de"},"license":"MIT"}