{"_id":"superstore-sync","_rev":"17-669aa51e533b5b33ee969f457f104eca","name":"superstore-sync","dist-tags":{"latest":"2.1.1"},"versions":{"1.0.0":{"name":"superstore-sync","version":"1.0.0","keywords":["localstorage"],"author":{"name":"Matt Andrews","email":"matthew.andrews@ft.com"},"license":"MIT","_id":"superstore-sync@1.0.0","maintainers":[{"name":"ftlabs","email":"onlineservices@labs.ft.com"}],"homepage":"https://github.com/matthew-andrews/superstore-sync","bugs":{"url":"https://github.com/matthew-andrews/superstore-sync/issues"},"dist":{"shasum":"59a819a1d90292f89fde5c7d3b79eb071ef9817b","tarball":"https://registry.npmjs.org/superstore-sync/-/superstore-sync-1.0.0.tgz","integrity":"sha512-gzr/r4Y0hvozH13VwcUK0JuIG0gBUPIPC/s8cUszFAxsMN9bDYJy+swwBhdeZzse2JZ9eU6tvlmVl6oZio6Jcg==","signatures":[{"sig":"MEYCIQCVJCMNIhc4flBoHhenEI9AV+TYLK2Rn8E+MSpbG+j8IgIhANoeKT18+o9DJ2sCDevk2uhSxqhpNwSDopeLaTorw2QE","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/superstore-sync.js","_from":".","engines":{"node":"*"},"scripts":{"test":"./node_modules/.bin/grunt test; ./node_modules/.bin/buster test"},"_npmUser":{"name":"ftlabs","email":"onlineservices@labs.ft.com"},"repository":{"url":"git@github.com:matthew-andrews/superstore-sync.git","type":"git"},"_npmVersion":"1.3.13","description":"Local storage, without the bugs.","directories":{"test":"test"},"dependencies":{"setimmediate":"~1.0.1"},"devDependencies":{"q":"~0.9.6","grunt":"~0.4.1","buster":"~0.6.12","grunt-cli":"~0.1.8","phantomjs":"~1.9.1","grunt-istanbul":"~0.2.2","buster-istanbul":"~0.1.10","grunt-browserify":"~1.2.1"}},"1.1.0":{"name":"superstore-sync","version":"1.1.0","keywords":["localstorage"],"author":{"name":"Matt Andrews","email":"matthew.andrews@ft.com"},"license":"MIT","_id":"superstore-sync@1.1.0","maintainers":[{"name":"ftlabs","email":"onlineservices@labs.ft.com"}],"homepage":"https://github.com/matthew-andrews/superstore-sync","bugs":{"url":"https://github.com/matthew-andrews/superstore-sync/issues"},"dist":{"shasum":"21d9d716f2439f67e0e224b9ccc139a5e7edd69e","tarball":"https://registry.npmjs.org/superstore-sync/-/superstore-sync-1.1.0.tgz","integrity":"sha512-FhYMTG2L5Bpt4t0k+EO0PlfSNstfRihwto7C3WWxJBKwHUXrBm1o8nyzZ9r0m1L9k815EyQN9ie3lVrU/zJO5Q==","signatures":[{"sig":"MEUCIAJfuP1lkzCzIYwps3dqiZ1iS/8io4IQ6tpM8xEx1pSWAiEAqoewU3TAEE56d4RdObOpUqKNIJmNC21E2j3Sya071Qk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/superstore-sync.js","_from":".","_shasum":"21d9d716f2439f67e0e224b9ccc139a5e7edd69e","engines":{"node":"*"},"gitHead":"8e63b093186579856e38d9b9201a2349f128d198","scripts":{"test":"grunt test; ./node_modules/.bin/buster test"},"_npmUser":{"name":"ftlabs","email":"ftlabs-opensource@ft.com"},"repository":{"url":"git@github.com:matthew-andrews/superstore-sync.git","type":"git"},"_npmVersion":"2.5.1","description":"Local storage, without the bugs.","directories":{"test":"test"},"_nodeVersion":"0.12.0","dependencies":{"setimmediate":"~1.0.1","escape-regexp-component":"~1.0"},"devDependencies":{"q":"~0.9.6","grunt":"~0.4.1","buster":"~0.6.12","grunt-cli":"~0.1.8","phantomjs":"~1.9.1","grunt-istanbul":"~0.2.2","buster-istanbul":"~0.1.10","grunt-browserify":"~1.2.1"}},"2.0.0":{"name":"superstore-sync","version":"2.0.0","keywords":["localstorage","sessionstorage"],"license":"MIT","_id":"superstore-sync@2.0.0","maintainers":[{"name":"ftlabs","email":"ftlabs-opensource@ft.com"},{"name":"kornel","email":"pornel@pornel.net"},{"name":"mattandrews","email":"matt@mattandre.ws"}],"homepage":"https://github.com/matthew-andrews/superstore-sync","bugs":{"url":"https://github.com/matthew-andrews/superstore-sync/issues"},"dist":{"shasum":"71d90b6c296ea251108fb349b95b29c1cbc67990","tarball":"https://registry.npmjs.org/superstore-sync/-/superstore-sync-2.0.0.tgz","integrity":"sha512-tfujZ157SmRki0y7QREODE9V/Os3z71PIrgS66/gA6uOlArT+8mdO9NTVcs66DK1ks0/S/PU4NhERR8tnTGmKQ==","signatures":[{"sig":"MEUCIE+wB+PpgdnPWark5aK3hOPd1aRO5qSCWrmI9BpG+hhNAiEA83wQs36gWJz3DtBidDSOdSidw6cO1oGa7KczKGKfTyQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/superstore-sync.js","_from":".","_shasum":"71d90b6c296ea251108fb349b95b29c1cbc67990","engines":{"node":"*"},"gitHead":"e2acd3f1165a26556d9a0ab514384cc29d11f8f6","scripts":{"test":"grunt test; ./node_modules/.bin/buster test"},"_npmUser":{"name":"mattandrews","email":"matt@mattandre.ws"},"repository":{"url":"git@github.com:matthew-andrews/superstore-sync.git","type":"git"},"_npmVersion":"2.7.4","description":"Local storage, without the bugs.","directories":{"test":"test"},"_nodeVersion":"0.12.2","devDependencies":{"q":"~0.9.6","grunt":"~0.4.1","buster":"~0.6.12","grunt-cli":"~0.1.8","phantomjs":"~1.9.1","grunt-istanbul":"~0.2.2","buster-istanbul":"~0.1.10","grunt-browserify":"~1.2.1"}},"2.0.1":{"name":"superstore-sync","version":"2.0.1","keywords":["localstorage","sessionstorage"],"license":"MIT","_id":"superstore-sync@2.0.1","maintainers":[{"name":"ftlabs","email":"ftlabs-opensource@ft.com"},{"name":"kornel","email":"pornel@pornel.net"},{"name":"mattandrews","email":"matt@mattandre.ws"}],"homepage":"https://github.com/matthew-andrews/superstore-sync","bugs":{"url":"https://github.com/matthew-andrews/superstore-sync/issues"},"dist":{"shasum":"bf30f26e1958b33c41fa605d56881d07fd0893ee","tarball":"https://registry.npmjs.org/superstore-sync/-/superstore-sync-2.0.1.tgz","integrity":"sha512-3vg1uAtHMN+Y52LYGsH4x0QC3w6ht3VMA3+WKDvD62fv3QIS0RgjG6wYduZBSRzTSw6yxI0itTje1ZGDkd0Q/Q==","signatures":[{"sig":"MEUCIEeP3Jr73t7wBegLBdOweFL3zwSnAcqwRHesz4pQMX+sAiEA5UCOb2eErDVqQVUDpb2E65kDNiLvInapz2Gur09mh0c=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/superstore-sync.js","_from":".","_shasum":"bf30f26e1958b33c41fa605d56881d07fd0893ee","engines":{"node":"*"},"gitHead":"7e324929612926ff22e4f55234c56d2e87bec63f","scripts":{"test":"grunt test; ./node_modules/.bin/buster test"},"_npmUser":{"name":"mattandrews","email":"matt@mattandre.ws"},"repository":{"url":"git@github.com:matthew-andrews/superstore-sync.git","type":"git"},"_npmVersion":"2.7.4","description":"Local storage, without the bugs.","directories":{"test":"test"},"_nodeVersion":"0.12.2","devDependencies":{"q":"~0.9.6","grunt":"~0.4.1","buster":"~0.6.12","grunt-cli":"~0.1.8","phantomjs":"~1.9.1","grunt-istanbul":"~0.2.2","buster-istanbul":"~0.1.10","grunt-browserify":"~1.2.1"}},"2.1.0":{"name":"superstore-sync","version":"2.1.0","keywords":["localstorage","sessionstorage"],"license":"MIT","_id":"superstore-sync@2.1.0","maintainers":[{"name":"financial-times","email":"strategic.products@ft.com"},{"name":"ftlabs","email":"ftlabs-opensource@ft.com"},{"name":"kornel","email":"pornel@pornel.net"},{"name":"mattandrews","email":"matt@mattandre.ws"}],"homepage":"https://github.com/matthew-andrews/superstore-sync","bugs":{"url":"https://github.com/matthew-andrews/superstore-sync/issues"},"dist":{"shasum":"dff61447480a339197eb13ca8e23a307d78407b7","tarball":"https://registry.npmjs.org/superstore-sync/-/superstore-sync-2.1.0.tgz","integrity":"sha512-NyaUe/GR86FjhP3x0tEfFRXRcwNe8uyFGjBrdiGkzyl4V4DDDLjPSVuffmDygMPcZl7Tjj4kUCIi0h6mUQPd4g==","signatures":[{"sig":"MEQCIB8h+tAYpzu4Kctl4kPNJILH4atj12aDENEsDwl7q9q4AiAdHl7bn6Ey1tpRd0azWzacVYiqrD1kqV/uZpZT2vHkeg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/superstore-sync.js","_from":".","_shasum":"dff61447480a339197eb13ca8e23a307d78407b7","engines":{"node":"*"},"gitHead":"0d6503500176334a3d464ef75c3ba0aeb622e6a2","scripts":{"test":"grunt test; ./node_modules/.bin/buster test"},"_npmUser":{"name":"financial-times","email":"strategic.products@ft.com"},"repository":{"url":"git@github.com:matthew-andrews/superstore-sync.git","type":"git"},"_npmVersion":"2.14.12","description":"Local storage, without the bugs.","directories":{"test":"test"},"_nodeVersion":"4.2.6","devDependencies":{"q":"~0.9.6","grunt":"~0.4.1","buster":"~0.6.12","grunt-cli":"~0.1.8","phantomjs":"~1.9.1","grunt-istanbul":"~0.2.2","buster-istanbul":"~0.1.10","grunt-browserify":"~1.2.1"},"_npmOperationalInternal":{"tmp":"tmp/superstore-sync-2.1.0.tgz_1455107429652_0.003981563029810786","host":"packages-9-west.internal.npmjs.com"}},"2.1.1":{"name":"superstore-sync","version":"2.1.1","keywords":["localstorage","sessionstorage"],"license":"MIT","_id":"superstore-sync@2.1.1","maintainers":[{"name":"financial-times","email":"strategic.products@ft.com"},{"name":"ftlabs","email":"ftlabs-opensource@ft.com"},{"name":"kornel","email":"pornel@pornel.net"},{"name":"mattandrews","email":"matt@mattandre.ws"}],"homepage":"https://github.com/matthew-andrews/superstore-sync#readme","bugs":{"url":"https://github.com/matthew-andrews/superstore-sync/issues"},"dist":{"shasum":"43ae9adec68be4406270700632b7677290ea3d4f","tarball":"https://registry.npmjs.org/superstore-sync/-/superstore-sync-2.1.1.tgz","fileCount":7,"integrity":"sha512-p9UZQkOR0JKr4rJFwQubHff8+ktFg8LuIvwR3fYtjra2+m6dTA3LPkf6VQApZaRgaCkYzcDDgAIshM1Ejq0wxQ==","signatures":[{"sig":"MEQCIEjWnlsUMslUps5F+9ApH0QZpcpzpi3PmNN0pP8dS1Y6AiBzHCDEv9EHRoOA85/B3bohtTSg20cGo0EwdGjIZwVtNA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8861,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb4w92CRA9TVsSAnZWagAA77oQAJUSdOAqkShIZsG+ljzW\n7bO7iETdHZitX2vvig8s8/zqLToQ1ieIF285mDfCs+54DQ1eCR/IAqF+Jj+4\n5c97Yyxd2xygw5Dx8CXblXjhrzY+hVDBCLUZ0bwAF1XCCuBnAwN4dl+RXOod\nohIBMPazlJKt7u1NAuQ5pl7+9I0wkDf6mzmXWu21322mAzZHEnphn1nQgas7\npPvMBMPs2177QU+FDUEdvsZ7I04t+WPRoVeNNfYkSiqMzrQVRXVzkWezXaKH\nxCbbpE++ewrOA+igkeX0+xQr0Q0TnqR2RGdkIMa9LvB0UY+9IFKtN2LfUIRE\n6TtpznpazM0MU2iVRXb4JF22QctWo2Gzq1QjOUzaWxL3k/pIq61uk9tiseqC\nZEqkLer41LGaR1qRkOsAA2ObZnFsHKxlnOWEvyWM4CHj2/KAdxZld5+k8kZO\n8zL4Jazhvbp82dbFdG+Q6xUgI0LG7mEafpV7UiSXZC2eqvaBji5yffHB3Vub\n9UgRcXtPOBbMsFeFxKyZ3I1wStlaezxnLmn6DAGgXjBz90QQN7YOZo94iO8d\nUXoIrbH1dQS4o/oPvWlYmR7pcSDAzSDhlDgDQVa6UE8fsATzFNp+VbsuVVts\nAQRV0jlPDvYX7VXuUcVrqRL5AQJjS12m/hu7+iX8gQV8SdBxwRrqpnHaciRo\n1flV\r\n=coXZ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/superstore-sync.js","engines":{"node":"*"},"gitHead":"61a327219740e8597e79d1539b6ccfa68aa5ee20","scripts":{"test":"grunt test; ./node_modules/.bin/buster test"},"_npmUser":{"name":"the-ft","email":"strategic.products+npm@ft.com"},"repository":{"url":"git+ssh://git@github.com/matthew-andrews/superstore-sync.git","type":"git"},"_npmVersion":"6.4.1","description":"Local storage, without the bugs.","directories":{"test":"test"},"_nodeVersion":"10.9.0","_hasShrinkwrap":false,"devDependencies":{"q":"~0.9.6","grunt":"~0.4.1","buster":"~0.6.12","grunt-cli":"~0.1.8","phantomjs":"~1.9.1","grunt-istanbul":"~0.2.2","buster-istanbul":"~0.1.10","grunt-browserify":"~1.2.1"},"_npmOperationalInternal":{"tmp":"tmp/superstore-sync_2.1.1_1541607286105_0.2783818455290168","host":"s3://npm-registry-packages"}}},"time":{"created":"2013-11-02T16:16:10.708Z","modified":"2025-03-19T11:31:35.870Z","1.0.0":"2013-11-02T16:16:13.292Z","1.1.0":"2015-02-17T11:13:24.162Z","2.0.0":"2015-07-10T13:17:13.034Z","2.0.1":"2015-07-15T09:44:15.200Z","2.1.0":"2016-02-10T12:30:32.731Z","2.1.1":"2018-11-07T16:14:46.179Z"},"bugs":{"url":"https://github.com/matthew-andrews/superstore-sync/issues"},"license":"MIT","homepage":"https://github.com/matthew-andrews/superstore-sync#readme","keywords":["localstorage","sessionstorage"],"repository":{"url":"git+ssh://git@github.com/matthew-andrews/superstore-sync.git","type":"git"},"description":"Local storage, without the bugs.","maintainers":[{"email":"matt@mattandre.ws","name":"mattandrews"},{"email":"me@jakechampion.name","name":"jakedchampion"},{"email":"ftlabs-opensource@ft.com","name":"ftlabs"},{"email":"code.management@ft.com","name":"the-ft"}],"readme":"# superstore-sync [![Build Status](https://travis-ci.org/matthew-andrews/superstore-sync.png?branch=master)](https://travis-ci.org/matthew-andrews/superstore-sync) [![NPM version](https://badge.fury.io/js/superstore-sync.png)](http://badge.fury.io/js/superstore-sync)\n\nSuperstore is a simple lightweight synchronous wrapper around the Web Storage APIs [localStorage](https://developer.mozilla.org/en/docs/Web/API/Window/localStorage) and [sessionStorage](https://developer.mozilla.org/en/docs/Web/API/Window/sessionStorage).  Its features include:\n\n- It is [resilient to iOS's strange behaviour in private browsing mode](http://stackoverflow.com/questions/14555347/html5-localstorage-doesnt-works-in-ios-safari-private-browsing).\n- It accepts objects as values and runs `JSON.stringify` on **#set** and `JSON.parse` on **#get** for you.\n\nIf you require an asyncronous version please use [superstore](https://github.com/matthew-andrews/superstore) instead.\n\n## install\n### NPM\n```\nnpm install superstore-sync --save\n```\n\n### bower\n```\nbower install superstore-sync --save\n```\n\n## api\n\nsuperstore-sync is an uninstantiable module.  Its methods are:\n\n## local\n\n### #local.get(key)\n\n### #local.set(key, value)\n\n### #local.unset(key)\n\n### #local.clear(prefix)\n\n## session\n\n### #session.get(key)\n\n### #session.set(key, value)\n\n### #session.unset(key)\n\n### #session.clear(prefix)\n\n## #isPersisting()\n* returns a boolean set to true if data is being persisted to storage, or false if it is being kept in memory (e.g. if localStorage is full or inaccessible).\n\n## usage\n```javascript\nvar store = require('superstore-sync');\n\n//Persist a value to local storage\nvar value = store.local.set('foo', 'bar');\n\n//Get a value from session storage\nvar session = store.session.get('baz');\n```\n\n## todo\n\n- JSDoc comments and automatically generating documentation.\n","readmeFilename":"README.md"}