{"_id":"@cnbritain/merlin-frontend-store-js","_rev":"12-02f327033dab8a2ba369e781f81db4c3","name":"@cnbritain/merlin-frontend-store-js","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"name":"@cnbritain/merlin-frontend-store-js","version":"1.0.0","author":{"name":"https://github.com/cnduk/"},"license":"ISC","_id":"@cnbritain/merlin-frontend-store-js@1.0.0","maintainers":[{"name":"danelliottpalmer","email":"danelliottpalmer@gmail.com"}],"homepage":"https://github.com/cnduk/merlin-frontend-store-js#readme","bugs":{"url":"https://github.com/cnduk/merlin-frontend-store-js/issues"},"dist":{"shasum":"c79b97e6bc2cae095e841cf3b9ddb7a7c9e61d29","tarball":"https://registry.npmjs.org/@cnbritain/merlin-frontend-store-js/-/merlin-frontend-store-js-1.0.0.tgz","integrity":"sha512-2YLZ1uRmpvBVGjIzOSjQ2eH12Z2HRgaDQjoKadyLy3H8BNZvwWZfGCGNMP8/Tta2Jn0q7SYA/Bx1I8Ta9KkP7w==","signatures":[{"sig":"MEUCIGeRcmZQwtDTMLNMBXwwP1QrmM99/GeFLU+9rEccllF0AiEAkCu1BBCLUUWOcN3a8EepVaev1f5KrezAJL5Xr2zO7tY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"js/index.js","_from":".","_shasum":"c79b97e6bc2cae095e841cf3b9ddb7a7c9e61d29","gitHead":"e6a10035854db1d66f67410a2d349d1cd40fac6e","scripts":{"js":"webpack -w","copy":"mkdir -p static && cp -vr node_modules/@cnbritain/*/static/* static","docs":"jsdoc2md -t _readme.hbs --verbose js/**/*.js > README.md","sass":"node-sass --importer conf/sass/importer.js sass/page.scss demo/demo.css","jshint":"jshint js","demo-install":"cd demo && virtualenv . && pip install -r requirements.txt"},"_npmUser":{"name":"danelliottpalmer","email":"danelliottpalmer@gmail.com"},"cnOptions":{},"repository":{"url":"git+https://github.com/cnduk/merlin-frontend-store-js.git","type":"git"},"_npmVersion":"3.7.2","description":"Localstorage module that basically uses the Store","directories":{},"_nodeVersion":"4.0.0","dependencies":{"store":"^1.3.20"},"devDependencies":{"jshint":"^2.9.1","webpack":"^2.1.0-beta.4","node-sass":"^3.4.2","jsdoc-to-markdown":"^1.3.3"},"_npmOperationalInternal":{"tmp":"tmp/merlin-frontend-store-js-1.0.0.tgz_1460376400810_0.8900886902119964","host":"packages-16-east.internal.npmjs.com"}},"1.0.1":{"name":"@cnbritain/merlin-frontend-store-js","version":"1.0.1","author":{"name":"https://github.com/cnduk/"},"license":"ISC","_id":"@cnbritain/merlin-frontend-store-js@1.0.1","maintainers":[{"name":"danelliottpalmer","email":"danelliottpalmer@gmail.com"},{"name":"rtt","email":"npmjs@rsty.org"},{"name":"samtiffin","email":"sam@samtiffin.com"},{"name":"stefanpiazza","email":"stefanpiazza@gmail.com"}],"homepage":"https://github.com/cnduk/merlin-frontend-store-js#readme","bugs":{"url":"https://github.com/cnduk/merlin-frontend-store-js/issues"},"dist":{"shasum":"00f3c1f057fc778bfe8a8951815284bd7f5e5f09","tarball":"https://registry.npmjs.org/@cnbritain/merlin-frontend-store-js/-/merlin-frontend-store-js-1.0.1.tgz","integrity":"sha512-sx3prx6nSInid/2Qt37bzUnrzNXI9uqc++wPz1mEP9JA6mT5iBEe6e4zSMzF5++GJ8eba9zDaIUir5GdKD9T7g==","signatures":[{"sig":"MEQCIDkxFGXHv0ViYnOK7sE1jaQ5rgdoLVCCJHoP3A6U4/5xAiAKQg/qZG4bcRDXl6FTr833sXOyBs+6+qPKWEub6aSW1w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"js/index.js","_from":".","_shasum":"00f3c1f057fc778bfe8a8951815284bd7f5e5f09","gitHead":"3ef17ece068b7d8845bea34b73d6571e06ddb83d","scripts":{"js":"webpack -w","copy":"mkdir -p static && cp -vr node_modules/@cnbritain/*/static/* static","docs":"jsdoc2md -t _readme.hbs --verbose js/**/*.js > README.md","sass":"node-sass --importer conf/sass/importer.js sass/page.scss demo/demo.css","jshint":"jshint js","demo-install":"cd demo && virtualenv . && pip install -r requirements.txt"},"_npmUser":{"name":"danelliottpalmer","email":"danelliottpalmer@gmail.com"},"cnOptions":{},"repository":{"url":"git+https://github.com/cnduk/merlin-frontend-store-js.git","type":"git"},"_npmVersion":"3.7.2","description":"Localstorage module that basically uses the Store","directories":{},"_nodeVersion":"4.0.0","dependencies":{"store":"^1.3.20"},"devDependencies":{"jshint":"^2.9.1","webpack":"^2.1.0-beta.4","node-sass":"^3.4.2","jsdoc-to-markdown":"^1.3.3"},"_npmOperationalInternal":{"tmp":"tmp/merlin-frontend-store-js-1.0.1.tgz_1460376446177_0.8625605534762144","host":"packages-16-east.internal.npmjs.com"}},"1.0.2":{"name":"@cnbritain/merlin-frontend-store-js","version":"1.0.2","author":{"name":"https://github.com/cnduk/"},"license":"ISC","_id":"@cnbritain/merlin-frontend-store-js@1.0.2","maintainers":[{"name":"danelliottpalmer","email":"danelliottpalmer@gmail.com"},{"name":"rtt","email":"npmjs@rsty.org"},{"name":"samtiffin","email":"sam@samtiffin.com"},{"name":"stefanpiazza","email":"stefanpiazza@gmail.com"}],"homepage":"https://github.com/cnduk/merlin-frontend-store-js#readme","bugs":{"url":"https://github.com/cnduk/merlin-frontend-store-js/issues"},"dist":{"shasum":"e7d872c2d060cea7ee91857af59622da45b65b4c","tarball":"https://registry.npmjs.org/@cnbritain/merlin-frontend-store-js/-/merlin-frontend-store-js-1.0.2.tgz","integrity":"sha512-dGjOswFVVA63Aj0igvHlzeNRj5WvE9G/UPX8FcM0mBazZ/xqZWosBiPrkpWNbP5KminyDerxG070v7ifRSBo9A==","signatures":[{"sig":"MEUCIQCZ0neFXjHOdTELnysBr6wqFUKzYu2aw9DxXOGlKgh3iwIgBD2OKTXF4gROwev29jmt/RYNVGAr1MHHNunavxw7Cls=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"js/index.js","_from":".","_shasum":"e7d872c2d060cea7ee91857af59622da45b65b4c","gitHead":"cbc13fd37bfd6ba9e751a2a28bfff74165b536d3","scripts":{"js":"webpack -w","copy":"mkdir -p static && cp -vr node_modules/@cnbritain/*/static/* static","docs":"jsdoc2md -t _readme.hbs --verbose js/**/*.js > README.md","sass":"node-sass --importer conf/sass/importer.js sass/page.scss demo/demo.css","jshint":"jshint js","demo-install":"cd demo && virtualenv . && pip install -r requirements.txt"},"_npmUser":{"name":"danelliottpalmer","email":"danelliottpalmer@gmail.com"},"cnOptions":{},"repository":{"url":"git+https://github.com/cnduk/merlin-frontend-store-js.git","type":"git"},"_npmVersion":"3.7.2","description":"Localstorage module that basically uses the Store","directories":{},"_nodeVersion":"4.0.0","dependencies":{"store":"^1.3.20"},"devDependencies":{"jshint":"^2.9.1","webpack":"^2.1.0-beta.4","node-sass":"^3.4.2","jsdoc-to-markdown":"^1.3.3"},"_npmOperationalInternal":{"tmp":"tmp/merlin-frontend-store-js-1.0.2.tgz_1460383618565_0.44574876641854644","host":"packages-16-east.internal.npmjs.com"}},"1.0.3":{"name":"@cnbritain/merlin-frontend-store-js","version":"1.0.3","author":{"name":"https://github.com/cnduk/"},"license":"ISC","_id":"@cnbritain/merlin-frontend-store-js@1.0.3","maintainers":[{"name":"danelliottpalmer","email":"danelliottpalmer@gmail.com"},{"name":"rtt","email":"npmjs@rsty.org"},{"name":"samtiffin","email":"sam@samtiffin.com"},{"name":"stefanpiazza","email":"stefanpiazza@gmail.com"}],"homepage":"https://github.com/cnduk/merlin-frontend-store-js#readme","bugs":{"url":"https://github.com/cnduk/merlin-frontend-store-js/issues"},"dist":{"shasum":"05d3b523915803ca50793ac30e38af70f2515f2c","tarball":"https://registry.npmjs.org/@cnbritain/merlin-frontend-store-js/-/merlin-frontend-store-js-1.0.3.tgz","integrity":"sha512-SXt1d87Vjl2/DZkPnivPk7gHs62+Q1nhGnvZ+U4vjmImVRJmwnUycrh9091kWV1TLZd1wVf0xha9Qa2EOE/Ahw==","signatures":[{"sig":"MEYCIQDkUaEj8D0qh7B+AOWvPi821lRzjT8P+YoOy5EKo1SkuQIhALyozDgUw4NboJ05gfXSOsF209eYvSzutbM4tbOS175U","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"js/index.js","_from":".","_shasum":"05d3b523915803ca50793ac30e38af70f2515f2c","gitHead":"a62735eb60c1e1143387c3c0674e540342f639d8","scripts":{"js":"webpack -w","copy":"mkdir -p static && cp -vr node_modules/@cnbritain/*/static/* static","docs":"jsdoc2md -t _readme.hbs --verbose js/**/*.js > README.md","sass":"node-sass --importer conf/sass/importer.js sass/page.scss demo/demo.css","jshint":"jshint js","demo-install":"cd demo && virtualenv . && pip install -r requirements.txt"},"_npmUser":{"name":"danelliottpalmer","email":"danelliottpalmer@gmail.com"},"cnOptions":{},"repository":{"url":"git+https://github.com/cnduk/merlin-frontend-store-js.git","type":"git"},"_npmVersion":"3.7.2","description":"Localstorage module that basically uses the Store","directories":{},"_nodeVersion":"4.0.0","dependencies":{"store":"^1.3.20"},"devDependencies":{"jshint":"^2.9.1","webpack":"^2.1.0-beta.4","node-sass":"^3.4.2","jsdoc-to-markdown":"^1.3.3"},"_npmOperationalInternal":{"tmp":"tmp/merlin-frontend-store-js-1.0.3.tgz_1460547423516_0.3200790819246322","host":"packages-12-west.internal.npmjs.com"}}},"time":{"created":"2016-04-11T12:06:41.948Z","modified":"2026-02-03T15:04:17.855Z","1.0.0":"2016-04-11T12:06:41.948Z","1.0.1":"2016-04-11T12:07:27.382Z","1.0.2":"2016-04-11T14:06:59.783Z","1.0.3":"2016-04-13T11:37:05.916Z"},"bugs":{"url":"https://github.com/cnduk/merlin-frontend-store-js/issues"},"author":{"name":"https://github.com/cnduk/"},"license":"ISC","homepage":"https://github.com/cnduk/merlin-frontend-store-js#readme","repository":{"url":"git+https://github.com/cnduk/merlin-frontend-store-js.git","type":"git"},"description":"Localstorage module that basically uses the Store","maintainers":[{"email":"npmjs@rsty.org","name":"rtt"},{"email":"sam@samtiffin.com","name":"samtiffin"},{"email":"digital-production-lead@condenast.co.uk","name":"cnduk"},{"email":"paul.eddleston@condenastint.com","name":"eddleston"}],"readme":"# merlin-frontend-store-js\nLocalstorage module that basically uses the Store\n\n# JS Documentation\n\n<a name=\"module_store\"></a>\n\n## store\n\n* [store](#module_store)\n    * [.clear()](#module_store.clear)\n    * [.forEach(callback)](#module_store.forEach)\n    * [.get(key, defaultVal)](#module_store.get) ⇒ <code>\\*</code>\n    * [.getAll()](#module_store.getAll) ⇒ <code>Object</code>\n    * [.remove(key)](#module_store.remove)\n    * [.set(key, val)](#module_store.set) ⇒ <code>\\*</code>\n\n<a name=\"module_store.clear\"></a>\n\n### store.clear()\nClears all the data\n\n**Kind**: static method of <code>[store](#module_store)</code>  \n<a name=\"module_store.forEach\"></a>\n\n### store.forEach(callback)\nLoops over each item stored\n\n**Kind**: static method of <code>[store](#module_store)</code>  \n\n| Param | Type |\n| --- | --- |\n| callback | <code>function</code> | \n\n<a name=\"module_store.get\"></a>\n\n### store.get(key, defaultVal) ⇒ <code>\\*</code>\nGets the value\n\n**Kind**: static method of <code>[store](#module_store)</code>  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| key | <code>String</code> |  |\n| defaultVal | <code>\\*</code> | Default value if key is not found |\n\n<a name=\"module_store.getAll\"></a>\n\n### store.getAll() ⇒ <code>Object</code>\nGets all the data\n\n**Kind**: static method of <code>[store](#module_store)</code>  \n<a name=\"module_store.remove\"></a>\n\n### store.remove(key)\nRemoves an item from the data\n\n**Kind**: static method of <code>[store](#module_store)</code>  \n\n| Param | Type |\n| --- | --- |\n| key | <code>String</code> | \n\n<a name=\"module_store.set\"></a>\n\n### store.set(key, val) ⇒ <code>\\*</code>\nSets a value\n\n**Kind**: static method of <code>[store](#module_store)</code>  \n**Returns**: <code>\\*</code> - The value  \n\n| Param | Type |\n| --- | --- |\n| key | <code>String</code> | \n| val | <code>\\*</code> | \n\n\n# LocalStorage keys\n\n| Key              | Page     | Description                         |\n|------------------|----------|-------------------------------------|\n| search_query     | Search   | Holds the search query. Used for infinite scroll |\n| article_referral_uid | Article   | Holds the referrer article uid. Used for infinite scroll |\n| article_exclude_uid | Article   | Holds the article uid of the article to exclude. Used for infinite scroll |\n| article_infinite_scroll | Article   | Turns infinite scroll on and off. Used for infinite scroll |\n| search_query | Search   | Holds the search term. Used for infinite scroll |\n| tag_infinite_url | Tag   | Holds the url of the current tag page. Used for infinite scroll |\n| tag_infinite_scroll | Tag   | Turns infinite scroll on and off. Used for infinite scroll |\n\n\n# Prerequisites:\n\n- [Node.js](https://nodejs.org/) — `brew install node`\n- [Grunt](http://gruntjs.com/) - `npm install -g grunt-cli`\n- Other prereqs? Python? Virtualenv?\n\n# Demo:\n\nInstall dependencies:\n\n```bash\nnpm install\n```\n\nBuild the things:\n\n```bash\nnpm run sass\nnpm run js\nnpm run docs\n```\n\nHint your JS\n\n```bash\nnpm run jshint\n```\n\nPython the pythons:\n\n```bash\nnpm run demo-install\n```\n\nStart the demo server:\n\n```bash\npython demo.py\n```\n","readmeFilename":"README.md"}