{"_id":"@bjnstnkvc/stash","_rev":"7-62c838f0907c1c16a9c8a3b2aca2a69d","name":"@bjnstnkvc/stash","dist-tags":{"latest":"1.0.6"},"versions":{"1.0.0":{"name":"@bjnstnkvc/stash","version":"1.0.0","keywords":["storage"],"author":{"name":"Bojan Stankovic"},"license":"MIT","_id":"@bjnstnkvc/stash@1.0.0","maintainers":[{"name":"bjnstnkvc","email":"dev.bojan.stankovic@gmail.com"}],"homepage":"https://github.com/BJNSTNKVC/js-stash#readme","bugs":{"url":"https://github.com/BJNSTNKVC/js-stash/issues"},"dist":{"shasum":"57e572876f950a855f35e952808f70d256476e57","tarball":"https://registry.npmjs.org/@bjnstnkvc/stash/-/stash-1.0.0.tgz","fileCount":11,"integrity":"sha512-IxosEaaXC021btmiqsEfRccJtpGACVgpHSuAvd+qKqAUS+AsJFGTVlfBqaS54r/JEzsxc0D5vbiPTZkaSlQUVg==","signatures":[{"sig":"MEQCIDnOTHrUfgumhMh9zB4FKGyrVcSaEHXYdfpRFUMcHtb9AiBKSQKzUgh9hLgVPrlB7ge9vzOoRi/uKhfn9vH6YWFlpA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12286},"main":"lib/main.js","types":"src/types.d.ts","source":"src/main.ts","gitHead":"dc8e941b2d69226c0e95dd0a97183b46f830e6e3","scripts":{"test":"jest --config jestconfig.json ./tests","build":"tsc","minify":"tsc && uglifyjs lib/main.js -c -m -o lib/main.min.js"},"_npmUser":{"name":"bjnstnkvc","actor":{"name":"bjnstnkvc","type":"user","email":"dev.bojan.stankovic@gmail.com"},"email":"dev.bojan.stankovic@gmail.com"},"repository":{"url":"git+https://github.com/BJNSTNKVC/js-stash.git","type":"git"},"_npmVersion":"11.4.2","description":"Simple wrapper for JavaScript Local and Session Storage API.","directories":{"lib":"lib"},"_nodeVersion":"20.17.0","dependencies":{"@bjnstnkvc/local-storage":"^1.1.2","@bjnstnkvc/session-storage":"^1.0.1"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^30.0.3","ts-jest":"^29.4.0","uglify-js":"^3.19.3","typescript":"^5.8.3","@types/jest":"^30.0.0","@types/node":"^24.0.7","jest-environment-jsdom":"^30.0.2"},"_npmOperationalInternal":{"tmp":"tmp/stash_1.0.0_1751139269088_0.5924299182774373","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@bjnstnkvc/stash","version":"1.0.1","keywords":["storage"],"author":{"name":"Bojan Stankovic"},"license":"MIT","_id":"@bjnstnkvc/stash@1.0.1","maintainers":[{"name":"bjnstnkvc","email":"dev.bojan.stankovic@gmail.com"}],"homepage":"https://github.com/BJNSTNKVC/js-stash#readme","bugs":{"url":"https://github.com/BJNSTNKVC/js-stash/issues"},"dist":{"shasum":"a38a5dc5fd2ec5e692c89a57052bd707f40219a4","tarball":"https://registry.npmjs.org/@bjnstnkvc/stash/-/stash-1.0.1.tgz","fileCount":11,"integrity":"sha512-PM5pH3twUFymvyt8BazXA21kseMyH3tQ5aBVxF7UytP03OcRnr7QRa13nvpentjB6mvdhVc16U8WeUpGGm29Vw==","signatures":[{"sig":"MEYCIQDUhpe8lryI8flc3CQzxAd/EOHLMMw2GWSZgo4hoyOU2AIhAMCIiSgJ71aYhft+PvSAqb6Dnl1jhwl15OHZQ6FUymh0","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11927},"main":"lib/main.js","types":"src/types.d.ts","source":"src/main.ts","gitHead":"dfdd3e71052f444d4370abb6428b7eab76ff483e","scripts":{"test":"jest --config jestconfig.json ./tests","build":"tsc","minify":"tsc && uglifyjs lib/main.js -c -m -o lib/main.min.js"},"_npmUser":{"name":"bjnstnkvc","actor":{"name":"bjnstnkvc","type":"user","email":"dev.bojan.stankovic@gmail.com"},"email":"dev.bojan.stankovic@gmail.com"},"repository":{"url":"git+https://github.com/BJNSTNKVC/js-stash.git","type":"git"},"_npmVersion":"11.4.2","description":"Simple wrapper for JavaScript Local and Session Storage API.","directories":{"lib":"lib"},"_nodeVersion":"20.17.0","dependencies":{"@bjnstnkvc/local-storage":"^1.1.2","@bjnstnkvc/session-storage":"^1.0.1"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^30.0.3","ts-jest":"^29.4.0","uglify-js":"^3.19.3","typescript":"^5.8.3","@types/jest":"^30.0.0","@types/node":"^24.0.7","jest-environment-jsdom":"^30.0.2"},"_npmOperationalInternal":{"tmp":"tmp/stash_1.0.1_1751140020920_0.17508427825821715","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@bjnstnkvc/stash","version":"1.0.2","keywords":["storage"],"author":{"name":"Bojan Stankovic"},"license":"MIT","_id":"@bjnstnkvc/stash@1.0.2","maintainers":[{"name":"bjnstnkvc","email":"dev.bojan.stankovic@gmail.com"}],"homepage":"https://github.com/BJNSTNKVC/js-stash#readme","bugs":{"url":"https://github.com/BJNSTNKVC/js-stash/issues"},"dist":{"shasum":"cdb5465d6f1e059ba042cd5eb68aac0a2cccfbe1","tarball":"https://registry.npmjs.org/@bjnstnkvc/stash/-/stash-1.0.2.tgz","fileCount":10,"integrity":"sha512-aZgSV0mqF4lY0wl1zk+q0WFKvueri7ALWgWyA+BVN83Hqt8NAebK6YB66/rEHjbJzGbCbFFtFmTwcPwIgkTLLQ==","signatures":[{"sig":"MEYCIQCPwFRegNhCEo5xfw6cNaDAMcIY0NuUmCCz0Ew6U/K1zQIhAKlkr7psxD6gH60qOV+/AmWUp4grseDQ4wROaKmIm6B4","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11893},"main":"lib/main.js","source":"src/main.ts","gitHead":"3dea86faebf2b5138d4b7bdf613f9c65a2925563","scripts":{"test":"jest --config jestconfig.json ./tests","build":"tsc","minify":"tsc && uglifyjs lib/main.js -c -m -o lib/main.min.js"},"_npmUser":{"name":"bjnstnkvc","actor":{"name":"bjnstnkvc","type":"user","email":"dev.bojan.stankovic@gmail.com"},"email":"dev.bojan.stankovic@gmail.com"},"repository":{"url":"git+https://github.com/BJNSTNKVC/js-stash.git","type":"git"},"_npmVersion":"11.4.2","description":"Simple wrapper for JavaScript Local and Session Storage API.","directories":{"lib":"lib"},"_nodeVersion":"20.17.0","dependencies":{"@bjnstnkvc/local-storage":"^1.1.2","@bjnstnkvc/session-storage":"^1.0.1"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^30.0.3","ts-jest":"^29.4.0","uglify-js":"^3.19.3","typescript":"^5.8.3","@types/jest":"^30.0.0","@types/node":"^24.0.7","jest-environment-jsdom":"^30.0.2"},"_npmOperationalInternal":{"tmp":"tmp/stash_1.0.2_1751140435634_0.3238620650223236","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@bjnstnkvc/stash","version":"1.0.3","keywords":["storage"],"author":{"name":"Bojan Stankovic"},"license":"MIT","_id":"@bjnstnkvc/stash@1.0.3","maintainers":[{"name":"bjnstnkvc","email":"dev.bojan.stankovic@gmail.com"}],"homepage":"https://github.com/BJNSTNKVC/js-stash#readme","bugs":{"url":"https://github.com/BJNSTNKVC/js-stash/issues"},"dist":{"shasum":"1660567cf374dea4ec29b652c5ddba2c4563569b","tarball":"https://registry.npmjs.org/@bjnstnkvc/stash/-/stash-1.0.3.tgz","fileCount":10,"integrity":"sha512-BdPalP3O9V1UrkMX04TVtxWkPUGyeEyb1ggd9O7viC01/pB57dKYGmvn8KeVcurprjagyEEidx5pbEw7eXRv2Q==","signatures":[{"sig":"MEUCIQD/x4DYv6IAIfk4MMAE8tkIAs035J8DQpb1PR+truKZFQIgXJjsQkwpKAJoEvhLzDYpP9x69Xs1ohuNkcT1IoVzVPU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11917},"main":"lib/main.js","source":"src/main.ts","gitHead":"e45a4790fb78de2634e010c8e95ef3fb4400bc1d","scripts":{"test":"jest --config jestconfig.json ./tests","build":"tsc","minify":"tsc && uglifyjs lib/main.js -c -m -o lib/main.min.js"},"_npmUser":{"name":"bjnstnkvc","actor":{"name":"bjnstnkvc","type":"user","email":"dev.bojan.stankovic@gmail.com"},"email":"dev.bojan.stankovic@gmail.com"},"repository":{"url":"git+https://github.com/BJNSTNKVC/js-stash.git","type":"git"},"_npmVersion":"11.4.2","description":"Simple wrapper for JavaScript Local and Session Storage API.","directories":{"lib":"lib"},"_nodeVersion":"20.17.0","dependencies":{"@bjnstnkvc/local-storage":"^1.1.5","@bjnstnkvc/session-storage":"^1.0.4"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^30.0.3","ts-jest":"^29.4.0","uglify-js":"^3.19.3","typescript":"^5.8.3","@types/jest":"^30.0.0","@types/node":"^24.0.7","jest-environment-jsdom":"^30.0.2"},"_npmOperationalInternal":{"tmp":"tmp/stash_1.0.3_1751149481992_0.922985851986567","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@bjnstnkvc/stash","version":"1.0.4","keywords":["storage"],"author":{"name":"Bojan Stankovic"},"license":"MIT","_id":"@bjnstnkvc/stash@1.0.4","maintainers":[{"name":"bjnstnkvc","email":"dev.bojan.stankovic@gmail.com"}],"homepage":"https://github.com/BJNSTNKVC/js-stash#readme","bugs":{"url":"https://github.com/BJNSTNKVC/js-stash/issues"},"dist":{"shasum":"cbafa4f1efae9d082bb4130cfeeb426a3cabb0cd","tarball":"https://registry.npmjs.org/@bjnstnkvc/stash/-/stash-1.0.4.tgz","fileCount":16,"integrity":"sha512-h4y/zoBZMVjYRBkqx//YUSwWVKzr7jspkSLEeJqneii/cgY9Txm/R6pK5NhKORs4AHr8ktJOlXIK3+2XOTvSrQ==","signatures":[{"sig":"MEUCIQCggreFBVWOKazLKe9BO3fweiZ1/NGMiOBZSWGyGwbF+AIgEo1q9QffYlNgl/5tv9lxRhFGP+C+lsxDZNO7jguYEq8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":104987},"main":"lib/main.js","type":"module","types":"src/main.d.ts","source":"src/main.ts","exports":{".":{"import":"./lib/main.esm.js","default":"./lib/main.umd.js","require":"./lib/main.umd.js"}},"gitHead":"0b91a132750fb14e2eae6c0f5eb3b5a30c5d82ed","scripts":{"test":"jest --config jestconfig.json ./tests","build":"rollup -c"},"_npmUser":{"name":"bjnstnkvc","actor":{"name":"bjnstnkvc","type":"user","email":"dev.bojan.stankovic@gmail.com"},"email":"dev.bojan.stankovic@gmail.com"},"repository":{"url":"git+https://github.com/BJNSTNKVC/js-stash.git","type":"git"},"_npmVersion":"11.4.2","description":"Simple wrapper for JavaScript Local and Session Storage API.","directories":{"lib":"lib"},"_nodeVersion":"20.17.0","dependencies":{"@bjnstnkvc/local-storage":"^1.1.6","@bjnstnkvc/session-storage":"^1.0.5"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","rollup":"^4.44.1","terser":"^5.43.1","ts-jest":"^29.4.0","typescript":"^5.8.3","@types/jest":"^29.5.14","@types/node":"^20.19.1","@rollup/plugin-terser":"^0.4.4","jest-environment-jsdom":"^29.7.0","@rollup/plugin-commonjs":"^28.0.6","rollup-plugin-typescript2":"^0.36.0","@rollup/plugin-node-resolve":"^16.0.1"},"_npmOperationalInternal":{"tmp":"tmp/stash_1.0.4_1751208634378_0.12534009937684987","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"@bjnstnkvc/stash","version":"1.0.5","keywords":["storage"],"author":{"name":"Bojan Stankovic"},"license":"MIT","_id":"@bjnstnkvc/stash@1.0.5","maintainers":[{"name":"bjnstnkvc","email":"dev.bojan.stankovic@gmail.com"}],"homepage":"https://github.com/BJNSTNKVC/js-stash#readme","bugs":{"url":"https://github.com/BJNSTNKVC/js-stash/issues"},"dist":{"shasum":"bd6a8d957ca8780b21d0af651c2e6f4698cf0a02","tarball":"https://registry.npmjs.org/@bjnstnkvc/stash/-/stash-1.0.5.tgz","fileCount":16,"integrity":"sha512-DHhD2gidAkWMXNyp2WVVJ0iBvDbdX/cWL65r6+PyvtDC3+cfTWWOZWUfSlwmaC/VbR31EcJQimVcin2KSJFD/Q==","signatures":[{"sig":"MEYCIQDU4XAcNcKzZBRfb30IKJ8ncVOGBCyBxuUwTleNK72k2wIhAJNEQteNAjtdcvO/A9BTTl6l9dJpTGbuYluv+mCZG/3v","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":168727},"main":"lib/main.js","type":"module","types":"src/main.d.ts","source":"src/main.ts","exports":{".":{"import":"./lib/main.esm.js","default":"./lib/main.umd.js","require":"./lib/main.umd.js"}},"gitHead":"2245fdb2e295d8938452c48c36c8e75babb5eac1","scripts":{"test":"jest --config jestconfig.json ./tests","build":"rollup -c"},"_npmUser":{"name":"bjnstnkvc","email":"dev.bojan.stankovic@gmail.com"},"repository":{"url":"git+https://github.com/BJNSTNKVC/js-stash.git","type":"git"},"_npmVersion":"11.5.2","description":"Simple wrapper for JavaScript Local Storage, Session Storage and Cookie API.","directories":{"lib":"lib"},"_nodeVersion":"20.17.0","dependencies":{"@bjnstnkvc/cookie":"^1.0.2","@bjnstnkvc/local-storage":"^1.1.7","@bjnstnkvc/session-storage":"^1.0.6"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","rollup":"^4.44.1","terser":"^5.43.1","ts-jest":"^29.4.0","typescript":"^5.8.3","@types/jest":"^29.5.14","@types/node":"^20.19.1","@rollup/plugin-terser":"^0.4.4","jest-environment-jsdom":"^29.7.0","@rollup/plugin-commonjs":"^28.0.6","rollup-plugin-typescript2":"^0.36.0","@rollup/plugin-node-resolve":"^16.0.1"},"_npmOperationalInternal":{"tmp":"tmp/stash_1.0.5_1756137909673_0.4657362052071088","host":"s3://npm-registry-packages-npm-production"}},"1.0.6":{"name":"@bjnstnkvc/stash","version":"1.0.6","description":"Simple wrapper for JavaScript Local Storage, Session Storage and Cookie API.","type":"module","main":"lib/main.js","source":"src/main.ts","types":"src/main.d.ts","exports":{".":{"import":"./lib/main.esm.js","require":"./lib/main.umd.js","default":"./lib/main.umd.js"}},"directories":{"lib":"lib"},"scripts":{"test":"jest --config jestconfig.json ./tests","build":"rollup -c"},"repository":{"type":"git","url":"git+https://github.com/BJNSTNKVC/js-stash.git"},"keywords":["storage"],"author":{"name":"Bojan Stankovic"},"license":"MIT","bugs":{"url":"https://github.com/BJNSTNKVC/js-stash/issues"},"homepage":"https://github.com/BJNSTNKVC/js-stash#readme","devDependencies":{"@rollup/plugin-commonjs":"^28.0.6","@rollup/plugin-node-resolve":"^16.0.1","@rollup/plugin-terser":"^1.0.0","@types/jest":"^29.5.14","@types/node":"^20.19.1","jest":"^29.7.0","jest-environment-jsdom":"^30.3.0","rollup":"^4.44.1","rollup-plugin-typescript2":"^0.36.0","terser":"^5.43.1","ts-jest":"^29.4.0","typescript":"^5.8.3"},"dependencies":{"@bjnstnkvc/cookie":"^1.0.3","@bjnstnkvc/local-storage":"^1.2.2","@bjnstnkvc/session-storage":"^1.1.0"},"gitHead":"ee065e438fd72b3ad3ae2be0794c04e5781ea0dc","_id":"@bjnstnkvc/stash@1.0.6","_nodeVersion":"20.17.0","_npmVersion":"11.7.0","dist":{"integrity":"sha512-pZ6ojQ7F7kXdPKyCKHVGxffsXHCs+yRT3hMVI08unNuylDn9cvAjj448dguN6A7WzBXtkNklPgcUkjZB3wDIIg==","shasum":"cf8ac64cca4e2b48319c14a66eb5e8e0f5061663","tarball":"https://registry.npmjs.org/@bjnstnkvc/stash/-/stash-1.0.6.tgz","fileCount":16,"unpackedSize":606608,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCICHJ7ommoe3QYgzngDsoT3h/Wik91BMcS/XWipQ8QOGlAiEAxgMCHLo1L6QkAhk9KCPcK9ynNkqYLa7WUbPSBfEQqh4="}]},"_npmUser":{"name":"bjnstnkvc","email":"dev.bojan.stankovic@gmail.com"},"maintainers":[{"name":"bjnstnkvc","email":"dev.bojan.stankovic@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/stash_1.0.6_1774879108068_0.026175353962344605"},"_hasShrinkwrap":false}},"time":{"created":"2025-06-28T19:34:29.035Z","modified":"2026-03-30T13:58:28.357Z","1.0.0":"2025-06-28T19:34:29.275Z","1.0.1":"2025-06-28T19:47:01.104Z","1.0.2":"2025-06-28T19:53:55.835Z","1.0.3":"2025-06-28T22:24:42.188Z","1.0.4":"2025-06-29T14:50:34.557Z","1.0.5":"2025-08-25T16:05:09.925Z","1.0.6":"2026-03-30T13:58:28.226Z"},"bugs":{"url":"https://github.com/BJNSTNKVC/js-stash/issues"},"author":{"name":"Bojan Stankovic"},"license":"MIT","homepage":"https://github.com/BJNSTNKVC/js-stash#readme","keywords":["storage"],"repository":{"type":"git","url":"git+https://github.com/BJNSTNKVC/js-stash.git"},"description":"Simple wrapper for JavaScript Local Storage, Session Storage and Cookie API.","maintainers":[{"name":"bjnstnkvc","email":"dev.bojan.stankovic@gmail.com"}],"readme":"# Stash\n\nA class that provides a wrapper for working with browser's Local and Session storage with a unified API.\n\n## Installation & setup\n\n### NPM\n\nYou can install the package via npm:\n\n```bash\nnpm install @bjnstnkvc/stash\n````\n\nand then import it into your project\n\n```javascript\nimport { Stash } from '@bjnstnkvc/stash';\n```\n\n### CDN\n\nYou can install the package via jsDelivr CDN:\n\n```html\n<script src=\"https://cdn.jsdelivr.net/npm/@bjnstnkvc/stash/lib/main.min.js\"></script>\n```\n\n## Usage\n\n### driver\n\nCreates a new instance of the Stash for the given driver.\n\n#### Parameters\n\n- **driver** - String containing the name of the storage driver to be used (_**'local'**_, _**'session'**_ or _**'cookie'**_).\n\n#### Example\n\n```javascript\nconst local: typeof LocalStorage = Stash.driver('local');\n```\n\n```javascript\nconst session: typeof SessionStorage = Stash.driver('session');\n```\n\n```javascript\nconst cookie: typeof Cookie = Stash.driver('cookie');\n```\n\n>**Note:** Driver implementations can be found in [local-storage](https://github.com/BJNSTNKVC/js-local-storage), [session-storage](https://github.com/BJNSTNKVC/js-session-storage) and [cookie](https://github.com/BJNSTNKVC/js-cookie) repositories respectively.\n\n### local\n\nCreates a new instance of the Local Storage.\n\n#### Example\n\n```javascript\nconst local: typeof LocalStorage = Stash.local();\n````\n\n### session\n\nCreates a new instance of the Session Storage.\n\n#### Example\n\n```javascript\nconst session: typeof SessionStorage = Stash.session();\n````\n\n### cookie\n\nCreates a new instance of the Cookie.\n\n#### Example\n\n```javascript\nconst cookie: typeof Cookie = Stash.cookie();\n````","readmeFilename":"README.md"}