{"_id":"redux-persistence-engine-localstorage","_rev":"1-4bc2ee60a8918335b6991388b7ce14c7","name":"redux-persistence-engine-localstorage","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"redux-persistence-engine-localstorage","version":"1.0.0","description":"LocalStorage engine for redux-persistence","main":"dist/index.js","typings":"dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/decentraland/redux-persistence-engine-localstorage.git"},"keywords":["decentraland","redux","redux-storage","persistence","local-storage"],"scripts":{"build":"tsc","test":"ava --serial","semantic-release":"semantic-release"},"author":{"name":"Decentraland"},"license":"MIT","bugs":{"url":"https://github.com/decentraland/redux-persistence-engine-localstorage/issues"},"homepage":"https://github.com/decentraland/redux-persistence-engine-localstorage#readme","dependencies":{"@types/node":"^12.6.8","@types/sinon":"^7.0.13","fp-future":"^1.0.1","redux-persistence":"^1.1.3"},"devDependencies":{"ava":"^2.2.0","prettier":"^1.18.2","semantic-release":"^15.13.18","sinon":"^7.3.2","ts-node":"^8.3.0","typescript":"^3.5.3"},"prettier":{"semi":false,"singleQuote":true,"printWidth":140},"ava":{"compileEnhancements":false,"extensions":["ts"],"require":["ts-node/register"]},"gitHead":"9f56190197f633624095713c7fdff9d681c63428","_id":"redux-persistence-engine-localstorage@1.0.0","_nodeVersion":"10.16.1","_npmVersion":"6.10.2","dist":{"integrity":"sha512-lf4EecO2UFxjB36YpiKwbmvko9DvdxqQ07jnwdJAxktHOiEeCP7xoE7MUei2Mtw5QzYiPLVDBRsWi0pTVH2jlA==","shasum":"75aac3760332bbf6a7f8cf06dfbff0fbfbaddb50","tarball":"https://registry.npmjs.org/redux-persistence-engine-localstorage/-/redux-persistence-engine-localstorage-1.0.0.tgz","fileCount":7,"unpackedSize":5709,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdSccSCRA9TVsSAnZWagAAqYYP/24lj640GaFGdVQtcC+B\n3hFmaRlCziBHL25UVj4OSzdYOg+gojOmjwptNTW4zlvag268TaoWogkpSweo\nPcIImxIwDMtrcc00bCERlTLfaA9jHq3CChox3EDFyzoW7qESJgA1N3Xg2hdT\n9yB76NKNcbZgg02j1grs29DpLkabEUWQdXGgZRHp7+EUEasSujkhia+VqJuG\n0jcHL2Q/M0GypTO68DDLWAXkAan9D3V2QCn7JP09It/QkDn/syAPkhMwEzE4\njg+u7JxsymThZn7MibbWWZUFVvmC3bR5hWkm4VNHNmo5Nq9l/500yB3i8mx9\nTzsPFCJCNbAZPGFFShNELsYa21S5lX8qW/+yIL7nMdk6j//ZUtCcqAkALToB\nKTqRhQQcJ6T9PFS6co8HfbQMvu5+5lU2lXF1UA8nLkKoNTAD4kuc8uG1wkGs\nHlb0L4RS+oMlAPzVP/6fQ2e2Rr9QrnaBdJr9qjvAc3vKixp7fC34MZoAYa/H\n9z81cvSSQjaq1Ss/0+yvXgedZjW20FZ941kITaOwtIuXsDJ/7fUQ2LVWkz+F\nqzI7QTzICS7nB41AqZy1N3+CBxdtrDrOQ6SLtvC8VRCR3pdzvgutYH+2hA9b\nwzR6/upSgZHWAIpAAzW4JP3wAVEQAw8TR/Z5/SX5kk5QA3YrPAGzfccUp+4l\nEPzW\r\n=XE0x\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD9waShf8rklsYoutDL5y5qNDVh4hk/uS+hQwAT2FKinQIhAIBZs1VpVDl4ZMgUjwZLIGNyoAoqsHvclKk6jQm+ZAAZ"}]},"maintainers":[{"name":"decentraland-bot","email":"developers@decentraland.org"}],"_npmUser":{"name":"decentraland-bot","email":"developers@decentraland.org"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/redux-persistence-engine-localstorage_1.0.0_1565116177361_0.5497473701750284"},"_hasShrinkwrap":false}},"time":{"created":"2019-08-06T18:29:37.361Z","1.0.0":"2019-08-06T18:29:37.511Z","modified":"2022-05-15T15:43:47.752Z"},"maintainers":[{"name":"decentraland-bot","email":"developers@decentraland.org"}],"description":"LocalStorage engine for redux-persistence","homepage":"https://github.com/decentraland/redux-persistence-engine-localstorage#readme","keywords":["decentraland","redux","redux-storage","persistence","local-storage"],"repository":{"type":"git","url":"git+https://github.com/decentraland/redux-persistence-engine-localstorage.git"},"author":{"name":"Decentraland"},"bugs":{"url":"https://github.com/decentraland/redux-persistence-engine-localstorage/issues"},"license":"MIT","readme":"<h1 align=\"center\" style=\"border-bottom: none;\">redux-persistence-engine-localstorage</h1>\n<h3 align=\"center\">LocalStorage engine for redux-persistence</h3>\n\n## Installation\n\n    npm install --save redux-persistence-engine-localstorage\n\n## Usage\n\nStores everything inside `window.localStorage`.\n\n```js\nimport createEngine from 'redux-persistence-engine-localstorage'\nconst engine = createEngine('my-save-key')\n```\n\nYou can customize the saving and loading process by providing a [`replacer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#The_replacer_parameter) and/or a [`reviver`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter).\n\n```js\nimport createEngine from 'redux-storage-engine-localstorage';\n\nfunction replacer (key, value) {\n  if (typeof value === 'string') {\n    return 'foo';\n  }\n  return value;\n}\n\nfunction reviver (key, value) {\n  if (key === 'foo') {\n    return 'bar';\n  }\n  return value;\n});\n\nconst engine = createEngine('my-save-key', replacer, reviver);\n```\n\n**Warning**: `localStorage` does not expose a async API and every save/load\noperation will block the JS thread!\n\n**Warning**: This library only works on browsers that support Promises (IE11 or better)\n\n**Warning**: If the browser doest not support LocalStorage, that should be handled before passing the engine to `redux-persistence` (see test)\n","readmeFilename":"README.md"}