{"_id":"datastore.memory","_rev":"4642877","name":"datastore.memory","description":"datastore in memory object","dist-tags":{"latest":"0.0.0"},"maintainers":[{"name":"jbenet","email":""}],"time":{"modified":"2026-04-10T20:05:34.000Z","created":"2014-06-17T03:35:19.664Z","0.0.0":"2014-06-17T03:35:19.664Z"},"users":{},"author":{"name":"Juan Benet","email":"juan@benet.ai","url":"http://juan.benet.ai/"},"repository":{"type":"git","url":"https://github.com/jbenet/datastore.memory.git"},"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":""}],"dist":{"shasum":"60f5e366a6e6f7765c4b72ae4eaee1088ea35178","size":1284,"noattachment":false,"key":"/datastore.memory/-/datastore.memory-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/datastore.memory/download/datastore.memory-0.0.0.tgz"},"directories":{},"publish_time":1402976119664,"_hasShrinkwrap":false,"_cnpm_publish_time":1402976119664,"_cnpmcore_publish_time":"2021-12-16T20:51:54.240Z"}},"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","_attachments":{},"homepage":"https://github.com/jbenet/datastore.memory","bugs":{"url":"https://github.com/jbenet/datastore.memory/issues"},"license":"MIT"}