{"_id":"datastore.memory","_rev":"4-312ca06aaaa1df29eace9bc7475871e2","name":"datastore.memory","description":"datastore in memory object","dist-tags":{"latest":"0.0.0"},"versions":{"0.0.0":{"name":"datastore.memory","version":"0.0.0","description":"datastore in memory object","main":"index.js","scripts":{"test":"node test.js"},"keywords":["datastore"],"author":{"name":"Juan Benet","email":"juan@benet.ai","url":"http://juan.benet.ai/"},"license":"MIT","devDependencies":{"tape":"^2.13.3"},"dependencies":{"datastore.abstract":"0.0.0"},"repository":{"type":"git","url":"https://github.com/jbenet/datastore.memory.git"},"bugs":{"url":"https://github.com/jbenet/datastore.memory/issues"},"homepage":"https://github.com/jbenet/datastore.memory","gitHead":"903222e1012829e669bc5c60cace8efceae1ceaf","_id":"datastore.memory@0.0.0","_shasum":"60f5e366a6e6f7765c4b72ae4eaee1088ea35178","_from":".","_npmVersion":"1.4.13","_npmUser":{"name":"jbenet","email":"juan@benet.ai"},"maintainers":[{"name":"jbenet","email":"juan@benet.ai"}],"dist":{"shasum":"60f5e366a6e6f7765c4b72ae4eaee1088ea35178","tarball":"https://registry.npmjs.org/datastore.memory/-/datastore.memory-0.0.0.tgz","integrity":"sha512-5kROSDbH534b4tYoLQde+FWrHstYlGOADp1WSpYKr8kGAgpR+XX4Qb+US1rPxnM0ZSCvmxjKUlhhpOz7wwEA3Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICaW9nns5EGdpfbnW5FvUW1sDz5uAU0jmRX0exlrtgvdAiEA70+3GTDEKNsrSlPOQbSHB9Zt3FyNn9zZC6lAWK0OwoQ="}]}}},"readme":"# datastore.memory\n\nStrawman [datastore] implementation. Simple in memory object.\n\n## Example\n\n```js\nvar assert = require('assert')\nvar MemDS = require('datastore.memory')\nvar ds = MemDS()\n\nds.put('foo', 'bar', function(err, val, key) {\n  if (err) throw err\n  console.log('put ' + key + ': ' + val)\n  assert(val === 'bar')\n})\n\nds.has('foo', function(err, has, key) {\n  if (err) throw err\n  console.log(key + ' exists? ' + has)\n  assert(has === true)\n})\n\nds.get('foo', function(err, val, key) {\n  if (err) throw err\n  console.log('get ' + key + ': ' + val)\n  assert(val === 'bar')\n})\n\nds.delete('foo', function(err, key) {\n  if (err) throw err\n  console.log(key + ' deleted')\n})\n\nds.has('foo', function(err, has, key) {\n  if (err) throw err\n  console.log(key + ' exists? ' + has)\n  assert(has === false)\n})\n```\n","maintainers":[{"name":"jbenet","email":"juan@benet.ai"}],"time":{"modified":"2022-06-14T19:42:44.252Z","created":"2014-06-17T03:35:19.664Z","0.0.0":"2014-06-17T03:35:19.664Z"},"homepage":"https://github.com/jbenet/datastore.memory","keywords":["datastore"],"repository":{"type":"git","url":"https://github.com/jbenet/datastore.memory.git"},"author":{"name":"Juan Benet","email":"juan@benet.ai","url":"http://juan.benet.ai/"},"bugs":{"url":"https://github.com/jbenet/datastore.memory/issues"},"license":"MIT","readmeFilename":"README.md"}