{"_id":"localstorage-memory","_rev":"3281833","name":"localstorage-memory","description":"localStorage-compatible API, but only stored in memory","dist-tags":{"latest":"1.0.3"},"maintainers":[{"name":"gr2m","email":"gregor@martynus.net"}],"time":{"modified":"2024-05-16T05:30:56.000Z","created":"2015-01-02T16:23:29.413Z","1.0.3":"2018-11-19T23:55:17.737Z","1.0.2":"2015-12-13T18:25:40.405Z","1.0.1":"2015-01-03T11:06:02.044Z","1.0.0":"2015-01-02T16:23:29.413Z"},"users":{},"author":{"name":"Gregor Martynus"},"repository":{"type":"git","url":"git+https://github.com/gr2m/localstorage-memory.git"},"versions":{"1.0.3":{"name":"localstorage-memory","description":"localStorage-compatible API, but only stored in memory","main":"lib/localstorage-memory.js","scripts":{"pretest":"standard","test":"mocha tests","docs":"doxx --source lib/ --target docs/ --template docs/template.jade","update-docs":"gh-pages-deploy","semantic-release":"semantic-release"},"repository":{"type":"git","url":"git+https://github.com/gr2m/localstorage-memory.git"},"keywords":["localstorage","browser","data"],"author":{"name":"Gregor Martynus"},"license":"MIT","bugs":{"url":"https://github.com/gr2m/localstorage-memory/issues"},"homepage":"http://gr2m.github.com/localstorage-memory","devDependencies":{"doxx":"^1.2.1","expect.js":"^0.3.1","gh-pages-deploy":"^0.1.1","mocha":"^2.1.0","semantic-release":"^15.12.0","standard":"^12.0.1"},"gh-pages-deploy":{"staticpath":"docs","noprompt":true},"version":"1.0.3","gitHead":"de562222c2c9143a36513b6aee5db19e38480fc3","_id":"localstorage-memory@1.0.3","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"gr2m","email":"gregor@martynus.net"},"dist":{"shasum":"566b37968fe0c4d76ba36a6da564fa613945ca72","size":9471,"noattachment":false,"key":"/localstorage-memory/-/localstorage-memory-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/localstorage-memory/download/localstorage-memory-1.0.3.tgz"},"maintainers":[{"name":"gr2m","email":"gregor@martynus.net"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/localstorage-memory_1.0.3_1542671717412_0.5125695119523275"},"_hasShrinkwrap":false,"publish_time":1542671717737,"_cnpm_publish_time":1542671717737,"_cnpmcore_publish_time":"2021-12-16T18:49:07.719Z"},"1.0.2":{"name":"localstorage-memory","description":"localStorage-compatible API, but only stored in memory","main":"lib/localstorage-memory.js","directories":{"test":"tests"},"scripts":{"jshint":"jshint -c .jshintrc lib/localstorage-memory.js bin/ tests/","test":"npm run jshint && npm run test-browser","test-browser":"node ./bin/test-browser.js","test-node":"sh bin/test-node.sh","dev-server":"http-server -a 127.0.0.1 -p 8000","docs":"doxx --source lib/ --target docs/ --template docs/template.jade","deploy":"gh-pages-deploy ","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"repository":{"type":"git","url":"git+https://github.com/gr2m/localstorage-memory.git"},"keywords":["localstorage","browser","data"],"author":{"name":"Gregor Martynus"},"license":"MIT","bugs":{"url":"https://github.com/gr2m/localstorage-memory/issues"},"homepage":"http://gr2m.github.com/localstorage-memory","devDependencies":{"chai":"^1.10.0","doxx":"^1.2.1","expect.js":"^0.3.1","gh-pages-deploy":"^0.1.1","http-server":"^0.7.4","jshint":"^2.5.11","mocha":"^2.1.0","request":"^2.51.0","sauce-connect-launcher":"^0.9.3","wd":"^0.3.11","semantic-release":"^6.0.3"},"gh-pages-deploy":{"staticpath":"docs"},"version":"1.0.2","gitHead":"57f5dc8f5c332ac3335448cc8e47721d5387cb11","_id":"localstorage-memory@1.0.2","_shasum":"cd4a8f210e55dd519c929f4b4cc82829b58f9a51","_from":".","_npmVersion":"2.14.15","_nodeVersion":"0.10.41","_npmUser":{"name":"gr2m","email":"gregor@martynus.net"},"dist":{"shasum":"cd4a8f210e55dd519c929f4b4cc82829b58f9a51","size":12700,"noattachment":false,"key":"/localstorage-memory/-/localstorage-memory-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/localstorage-memory/download/localstorage-memory-1.0.2.tgz"},"maintainers":[{"name":"gr2m","email":"gregor@martynus.net"}],"publish_time":1450031140405,"_hasShrinkwrap":false,"_cnpm_publish_time":1450031140405,"_cnpmcore_publish_time":"2021-12-16T18:49:08.078Z"},"1.0.1":{"name":"localstorage-memory","version":"1.0.1","description":"localStorage-compatible API, but only stored in memory","main":"lib/localstorage-memory.js","directories":{"test":"tests"},"scripts":{"jshint":"jshint -c .jshintrc lib/localstorage-memory.js bin/ tests/","test":"npm run jshint && npm run test-browser","test-browser":"node ./bin/test-browser.js","test-node":"sh bin/test-node.sh","dev-server":"http-server -a 127.0.0.1 -p 8000","docs":"doxx --source lib/ --target docs/ --template docs/template.jade","deploy":"gh-pages-deploy "},"repository":{"type":"git","url":"git://github.com/gr2m/localstorage-memory"},"keywords":["localstorage","browser","data"],"author":{"name":"Gregor Martynus"},"license":"MIT","bugs":{"url":"https://github.com/gr2m/localstorage-memory/issues"},"homepage":"http://gr2m.github.com/localstorage-memory","devDependencies":{"chai":"^1.10.0","doxx":"^1.2.1","expect.js":"^0.3.1","gh-pages-deploy":"^0.1.1","http-server":"^0.7.4","jshint":"^2.5.11","mocha":"^2.1.0","request":"^2.51.0","sauce-connect-launcher":"^0.9.3","wd":"^0.3.11"},"gh-pages-deploy":{"staticpath":"docs"},"gitHead":"41d5659d0662e15d8fcc18a2d0dcf5cedb7f8d9d","_id":"localstorage-memory@1.0.1","_shasum":"f5c9f63f9ebd52f0d6d33add31d6d43748c2a25d","_from":".","_npmVersion":"2.1.11","_nodeVersion":"0.10.32","_npmUser":{"name":"gr2m","email":"gregor@martynus.net"},"maintainers":[{"name":"gr2m","email":"gregor@martynus.net"}],"dist":{"shasum":"f5c9f63f9ebd52f0d6d33add31d6d43748c2a25d","size":12559,"noattachment":false,"key":"/localstorage-memory/-/localstorage-memory-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/localstorage-memory/download/localstorage-memory-1.0.1.tgz"},"publish_time":1420283162044,"_hasShrinkwrap":false,"_cnpm_publish_time":1420283162044,"_cnpmcore_publish_time":"2021-12-16T18:49:08.309Z"},"1.0.0":{"name":"localstorage-memory","version":"1.0.0","description":"localStorage-compatible API, but only stored in memory","main":"lib/localstorage-memory.js","directories":{"test":"tests"},"scripts":{"jshint":"jshint -c .jshintrc lib/localstorage-memory.js bin/ tests/","test":"npm run jshint && npm run test-browser","test-node":"sh bin/test-node.sh","test-browser":"node ./bin/test-browser.js","dev-server":"http-server -a 127.0.0.1 -p 8000","docs":"doxx --source lib/ --target docs/ --template docs/template.jade","deploy":"gh-pages-deploy "},"repository":{"type":"git","url":"git://github.com/gr2m/localstorage-memory"},"keywords":["localstorage","browser","data"],"author":{"name":"Gregor Martynus"},"license":"MIT","bugs":{"url":"https://github.com/gr2m/localstorage-memory/issues"},"homepage":"http://gr2m.github.com/localstorage-memory","devDependencies":{"chai":"^1.10.0","doxx":"^1.2.1","expect.js":"^0.3.1","gh-pages-deploy":"^0.1.1","http-server":"^0.7.4","jshint":"^2.5.11","mocha":"^2.1.0","request":"^2.51.0","sauce-connect-launcher":"^0.9.3","wd":"^0.3.11"},"gh-pages-deploy":{"staticpath":"docs"},"gitHead":"e85c5852b6dcfdfd5ac3170f90f40f7ff1542124","_id":"localstorage-memory@1.0.0","_shasum":"99f89225f86a2df4c73d08bd1f80198713299394","_from":".","_npmVersion":"2.1.11","_nodeVersion":"0.10.32","_npmUser":{"name":"gr2m","email":"gregor@martynus.net"},"maintainers":[{"name":"gr2m","email":"gregor@martynus.net"}],"dist":{"shasum":"99f89225f86a2df4c73d08bd1f80198713299394","size":32193703,"noattachment":false,"key":"/localstorage-memory/-/localstorage-memory-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/localstorage-memory/download/localstorage-memory-1.0.0.tgz"},"publish_time":1420215809413,"_hasShrinkwrap":false,"_cnpm_publish_time":1420215809413,"_cnpmcore_publish_time":"2021-12-16T18:50:12.832Z"}},"readme":"# localstorage-memory\n\n> localStorage-compatible API, but only stored in memory\n\n[![Build Status](https://travis-ci.org/gr2m/localstorage-memory.png?branch=master)](https://travis-ci.org/gr2m/localstorage-memory/)\n\n`localStorageMemory` provides all methods that `localStorage` in browsers\nprovides, but no data is persisted, it's only stored in memory. It can\nbe used as a drop-in replacement, the only exception being the\nAssociative array syntax `localStorage['myKey'] = 'myValue'`.\n\n\n## Download or Installation\n\n- Download [localstorage-memory.js](https://raw.githubusercontent.com/gr2m/localstorage-memory/master/lib/localstorage-memory.js)\n- or: install via Bower: `bower install --save localstorage-memory`\n- or: install via npm: `npm install --save localstorage-memory`\n\n\n## Usage\n\n```js\nlocalStorageMemory.getItem('unknown') // null\nlocalStorageMemory.setItem('foo', 123)\nlocalStorageMemory.getItem('foo') // \"123\"\nlocalStorageMemory.length // 1\nlocalStorageMemory.key(0) // \"foo\"\nlocalStorageMemory.clear()\nlocalStorageMemory.length // 0\n```\n\n\n# Related\n\n- https://github.com/lmaccherone/node-localstorage\n  provides a `localStorage` API, with data being persisted at provide path\n\n## License\n\nMIT\n","_attachments":{},"homepage":"http://gr2m.github.com/localstorage-memory","bugs":{"url":"https://github.com/gr2m/localstorage-memory/issues"},"license":"MIT"}