{"_id":"localstorage-polyfill","_rev":"3717086","name":"localstorage-polyfill","description":"in memory localStorage polyfill for node.js utilizing ES6 proxies","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"capaj","email":""}],"time":{"modified":"2025-02-13T06:01:23.000Z","created":"2016-08-18T17:36:13.058Z","1.0.1":"2016-09-14T11:03:41.307Z","1.0.0":"2016-08-29T09:55:34.793Z","0.9.2":"2016-08-22T07:48:35.365Z","0.9.1":"2016-08-21T14:50:15.948Z","0.9.0":"2016-08-18T17:36:13.058Z"},"users":{},"author":{"name":"capajj@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/capaj/localstorage-polyfill.git"},"versions":{"1.0.1":{"name":"localstorage-polyfill","version":"1.0.1","description":"in memory localStorage polyfill for node.js utilizing ES6 proxies","main":"localStorage.js","scripts":{"test":"ava","dev":"ava -w"},"engines":{"node":">=6"},"repository":{"type":"git","url":"git+https://github.com/capaj/localstorage-polyfill.git"},"keywords":["html5","local","storage","browser","testing","unit","testing"],"author":{"name":"capajj@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/capaj/localstorage-polyfill/issues"},"homepage":"https://github.com/capaj/localstorage-polyfill#readme","devDependencies":{"ava":"^0.16.0","standard":"^8.0.0"},"ava":{"files":["localStorage.spec.js"]},"gitHead":"b5ea78ecf23172550765a02db7f909b716b64120","_id":"localstorage-polyfill@1.0.1","_shasum":"4b3083d4bc51d23b4158537e66816137413fd31a","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.5.0","_npmUser":{"name":"capaj","email":"capajj@gmail.com"},"maintainers":[{"name":"capaj","email":""}],"dist":{"shasum":"4b3083d4bc51d23b4158537e66816137413fd31a","size":2741,"noattachment":false,"key":"/localstorage-polyfill/-/localstorage-polyfill-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/localstorage-polyfill/download/localstorage-polyfill-1.0.1.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/localstorage-polyfill-1.0.1.tgz_1473851019467_0.3163977994117886"},"directories":{},"publish_time":1473851021307,"_hasShrinkwrap":false,"_cnpm_publish_time":1473851021307,"_cnpmcore_publish_time":"2021-12-16T10:18:47.426Z"},"1.0.0":{"name":"localstorage-polyfill","version":"1.0.0","description":"in memory localStorage polyfill for node.js utilizing ES6 proxies","main":"localStorage.js","scripts":{"test":"ava","dev":"ava -w"},"repository":{"type":"git","url":"git+https://github.com/capaj/localstorage-polyfill.git"},"keywords":["html5","local","storage","browser","testing","unit","testing"],"author":{"name":"capajj@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/capaj/localstorage-polyfill/issues"},"homepage":"https://github.com/capaj/localstorage-polyfill#readme","devDependencies":{"ava":"^0.16.0","standard":"^8.0.0"},"ava":{"files":["localStorage.spec.js"]},"gitHead":"162d026d958e8c3672130d2cbd4f35ee5f5b6d9c","_id":"localstorage-polyfill@1.0.0","_shasum":"bf15803fa81e5ac2cd9dde267d919fc7d15c8aee","_from":".","_npmVersion":"3.3.7","_nodeVersion":"6.4.0","_npmUser":{"name":"capaj","email":"capajj@gmail.com"},"maintainers":[{"name":"capaj","email":""}],"dist":{"shasum":"bf15803fa81e5ac2cd9dde267d919fc7d15c8aee","size":2740,"noattachment":false,"key":"/localstorage-polyfill/-/localstorage-polyfill-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/localstorage-polyfill/download/localstorage-polyfill-1.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/localstorage-polyfill-1.0.0.tgz_1472464533707_0.8660822557285428"},"directories":{},"publish_time":1472464534793,"_hasShrinkwrap":false,"_cnpm_publish_time":1472464534793,"_cnpmcore_publish_time":"2021-12-16T10:18:47.647Z"},"0.9.2":{"name":"localstorage-polyfill","version":"0.9.2","description":"in memory localStorage polyfill for node.js utilizing ES6 proxies","main":"localStorage.js","scripts":{"test":"ava","dev":"ava -w"},"repository":{"type":"git","url":"git+https://github.com/capaj/localstorage-polyfill.git"},"keywords":["html5","local","storage","browser","testing","unit","testing"],"author":{"name":"capajj@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/capaj/localstorage-polyfill/issues"},"homepage":"https://github.com/capaj/localstorage-polyfill#readme","devDependencies":{"ava":"^0.16.0","standard":"^8.0.0-beta.5"},"ava":{"files":["localStorage.spec.js"]},"gitHead":"4a7ebe672b77dacbd402e931d15b428a78ee6635","_id":"localstorage-polyfill@0.9.2","_shasum":"a90dea1667f0da89ca41f0a3837f69b1b0f6b7ae","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"capaj","email":"capajj@gmail.com"},"maintainers":[{"name":"capaj","email":""}],"dist":{"shasum":"a90dea1667f0da89ca41f0a3837f69b1b0f6b7ae","size":2511,"noattachment":false,"key":"/localstorage-polyfill/-/localstorage-polyfill-0.9.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/localstorage-polyfill/download/localstorage-polyfill-0.9.2.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/localstorage-polyfill-0.9.2.tgz_1471852113842_0.10215242602862418"},"directories":{},"publish_time":1471852115365,"_hasShrinkwrap":false,"_cnpm_publish_time":1471852115365,"_cnpmcore_publish_time":"2021-12-16T10:18:47.854Z"},"0.9.1":{"name":"localstorage-polyfill","version":"0.9.1","description":"in memory localStorage polyfill for node.js utilizing ES6 proxies","main":"localStorage.js","scripts":{"test":"ava","dev":"ava -w"},"repository":{"type":"git","url":"git+https://github.com/capaj/localstorage-polyfill.git"},"keywords":["html5","local","storage","browser","testing","unit","testing"],"author":{"name":"capajj@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/capaj/localstorage-polyfill/issues"},"homepage":"https://github.com/capaj/localstorage-polyfill#readme","devDependencies":{"ava":"^0.16.0","standard":"^8.0.0-beta.5"},"ava":{"files":["localStorage.spec.js"]},"gitHead":"4042d3f8141c0348217669dc07504028e88b8c9e","_id":"localstorage-polyfill@0.9.1","_shasum":"e6e715787f2e7c81cbf9337147d8b645715317cd","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"capaj","email":"capajj@gmail.com"},"maintainers":[{"name":"capaj","email":""}],"dist":{"shasum":"e6e715787f2e7c81cbf9337147d8b645715317cd","size":2478,"noattachment":false,"key":"/localstorage-polyfill/-/localstorage-polyfill-0.9.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/localstorage-polyfill/download/localstorage-polyfill-0.9.1.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/localstorage-polyfill-0.9.1.tgz_1471791014561_0.47723971074447036"},"directories":{},"publish_time":1471791015948,"_hasShrinkwrap":false,"_cnpm_publish_time":1471791015948,"_cnpmcore_publish_time":"2021-12-16T10:18:48.134Z"},"0.9.0":{"name":"localstorage-polyfill","version":"0.9.0","description":"in memory localStorage polyfill for node.js utilizing proxies","main":"localStorage.js","scripts":{"test":"ava"},"repository":{"type":"git","url":"git+https://github.com/capaj/localstorage-polyfill.git"},"keywords":["html5","local","storage","browser","testing","unit","testing"],"author":{"name":"capajj@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/capaj/localstorage-polyfill/issues"},"homepage":"https://github.com/capaj/localstorage-polyfill#readme","devDependencies":{"ava":"^0.16.0"},"ava":{"files":["localStorage.spec.js"]},"gitHead":"9f8a44cc8d8fe2aadf52202adc44a93ac73e1b1f","_id":"localstorage-polyfill@0.9.0","_shasum":"452d7149aa596103fa3b19ec1d8d42e60cca0bf2","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"capaj","email":"capajj@gmail.com"},"dist":{"shasum":"452d7149aa596103fa3b19ec1d8d42e60cca0bf2","size":2439,"noattachment":false,"key":"/localstorage-polyfill/-/localstorage-polyfill-0.9.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/localstorage-polyfill/download/localstorage-polyfill-0.9.0.tgz"},"maintainers":[{"name":"capaj","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/localstorage-polyfill-0.9.0.tgz_1471541772094_0.7878890878055245"},"directories":{},"publish_time":1471541773058,"_hasShrinkwrap":false,"_cnpm_publish_time":1471541773058,"_cnpmcore_publish_time":"2021-12-16T10:18:48.349Z"}},"readme":"# localstorage-polyfill\n\nin memory localStorage polyfill for node.js utilizing ES6 proxies\n\n## Installation\n\n```\nnpm i localstorage-polyfill -D\n```\nSaving for development, because primarily this package is meant for unit testing browser in node.js.\n\n## Usage\n\n```javascript\nrequire('localstorage-polyfill')\n// or\nimport 'localstorage-polyfill'\nglobal.localStorage // now has your in memory localStorage\n```\n\nFor API doc, refer to MDN.\n\nThere are other packages like node-localStorage, but none of them work properly when you do\n\n```javascript\nlocalStorage.c = 1\n```\n\nThey only shim the methods of localStorage object, they don't imitate it's behaviour fully.\n","_attachments":{},"homepage":"https://github.com/capaj/localstorage-polyfill#readme","bugs":{"url":"https://github.com/capaj/localstorage-polyfill/issues"},"license":"MIT"}