{"_id":"redux-localstorage-filter","_rev":"167047","name":"redux-localstorage-filter","description":"Storage enhancer to persist a subset of your state.","dist-tags":{"latest":"0.1.1"},"maintainers":[{"name":"elgerlambert","email":"elgerlambert@gmail.com"}],"time":{"modified":"2021-06-03T11:47:11.000Z","created":"2015-09-01T14:54:46.873Z","0.1.1":"2015-09-02T08:21:13.401Z","0.1.0":"2015-09-01T14:54:46.873Z"},"users":{},"author":{"name":"Elger Lambert","email":"elgerlambert@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/elgerlambert/redux-localstorage-filter.git"},"versions":{"0.1.1":{"name":"redux-localstorage-filter","version":"0.1.1","description":"Storage enhancer to persist a subset of your state.","main":"lib/filter.js","scripts":{"prepublish":"make test clean build","test":"make test"},"files":["lib/","package.json","README.md"],"repository":{"type":"git","url":"git+https://github.com/elgerlambert/redux-localstorage-filter.git"},"keywords":["redux","redux-localstorage","storage enhancer","filter"],"author":{"name":"Elger Lambert","email":"elgerlambert@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/elgerlambert/redux-localstorage-filter/issues"},"homepage":"https://github.com/elgerlambert/redux-localstorage-filter#readme","devDependencies":{"babel":"^5.8.23","babel-core":"^5.8.23","babel-eslint":"^4.1.0","chai":"^3.2.0","eslint":"^1.3.1","eslint-config-airbnb":"0.0.8","mocha":"^2.2.5"},"gitHead":"9576e3e0679b957981cc7e80db276b48766af175","_id":"redux-localstorage-filter@0.1.1","_shasum":"94c5ab68d8cda479bb3cc6cdf03569f8f63a188d","_from":".","_npmVersion":"2.12.1","_nodeVersion":"2.3.4","_npmUser":{"name":"elgerlambert","email":"elgerlambert@gmail.com"},"dist":{"shasum":"94c5ab68d8cda479bb3cc6cdf03569f8f63a188d","size":2554,"noattachment":false,"key":"/redux-localstorage-filter/-/redux-localstorage-filter-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/redux-localstorage-filter/download/redux-localstorage-filter-0.1.1.tgz"},"maintainers":[{"name":"elgerlambert","email":"elgerlambert@gmail.com"}],"directories":{},"publish_time":1441182073401,"_cnpm_publish_time":1441182073401,"_hasShrinkwrap":false},"0.1.0":{"name":"redux-localstorage-filter","version":"0.1.0","description":"Storage enhancer to persist a subset of your state.","main":"/lib/filter.js","scripts":{"prepublish":"make test clean build","test":"make test"},"files":["lib/","package.json","README.md"],"repository":{"type":"git","url":"git+https://github.com/elgerlambert/redux-localstorage-filter.git"},"keywords":["redux","redux-localstorage","storage enhancer","filter"],"author":{"name":"Elger Lambert","email":"elgerlambert@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/elgerlambert/redux-localstorage-filter/issues"},"homepage":"https://github.com/elgerlambert/redux-localstorage-filter#readme","devDependencies":{"babel":"^5.8.23","babel-core":"^5.8.23","babel-eslint":"^4.1.0","chai":"^3.2.0","eslint":"^1.3.1","eslint-config-airbnb":"0.0.8","mocha":"^2.2.5"},"gitHead":"c32ff11ebaa58f074d22d2f87ea0864592722cb8","_id":"redux-localstorage-filter@0.1.0","_shasum":"e3ce831f22308fe4860a6039c24affa7087e96c8","_from":".","_npmVersion":"2.12.1","_nodeVersion":"2.3.4","_npmUser":{"name":"elgerlambert","email":"elgerlambert@gmail.com"},"dist":{"shasum":"e3ce831f22308fe4860a6039c24affa7087e96c8","size":2551,"noattachment":false,"key":"/redux-localstorage-filter/-/redux-localstorage-filter-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/redux-localstorage-filter/download/redux-localstorage-filter-0.1.0.tgz"},"maintainers":[{"name":"elgerlambert","email":"elgerlambert@gmail.com"}],"directories":{},"publish_time":1441119286873,"_cnpm_publish_time":1441119286873,"_hasShrinkwrap":false}},"readme":"# redux-localstorage-filter\nStorage enhancer to persist a subset of your state.\n\n[![license](https://img.shields.io/npm/l/redux-localstorage-filter.svg?style=flat-square)](https://www.npmjs.com/package/redux-localstorage-filter)\n[![npm version](https://img.shields.io/npm/v/redux-localstorage-filter.svg?style=flat-square)](https://www.npmjs.com/package/redux-localstorage-filter)\n[![npm downloads](https://img.shields.io/npm/dm/redux-localstorage-filter.svg?style=flat-square)](https://www.npmjs.com/package/redux-localstorage-filter)\n\n## Installation\n```js\nnpm install --save redux-localstorage-filter\n```\n\n## Usage\n```js\nconst storage = compose(\n  filter('nested.key'),\n)(adapter(localStorage));\n```\nFor more information on using storage enhancers check out [redux-localstorage](elgerlambert/redux-localstorage)\n\n## API\n### filter(paths)\n```js\ntype paths = Array<String> | String\n```\nA path is a `string` that points to the property key of your redux store that you would like to persist. In order to specify a nested key separate the keys that make up the full path with fullstops (`.`). Specify multiple paths by passing in an `Array`: \n\n```js\nfilter(['key', 'another.key']),\n```\n\n## License\nMIT\n","_attachments":{},"homepage":"https://github.com/elgerlambert/redux-localstorage-filter#readme","bugs":{"url":"https://github.com/elgerlambert/redux-localstorage-filter/issues"},"license":"MIT"}