{"_id":"ionstore","_rev":"1-dba82f3a4c6ac6d31bde3424a4f86862","name":"ionstore","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"ionstore","version":"1.0.0","keywords":["simple","isomorphic","session","temporary","temp","store","storage"],"_id":"ionstore@1.0.0","maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"homepage":"https://github.com/fabiospampinato/ionstore#readme","bugs":{"url":"https://github.com/fabiospampinato/ionstore/issues"},"dist":{"shasum":"20726799c2cd691a1226b36f5eb412a9d7b09086","tarball":"https://registry.npmjs.org/ionstore/-/ionstore-1.0.0.tgz","fileCount":21,"integrity":"sha512-ikEvmeZFh9u5SkjKbFqJlmmhaQTulB3P7QoSoZ/xL8EDP5uj5QWbPeKcQ8ZJtszBLHRRnhIJJE8P1dhFx/oCMw==","signatures":[{"sig":"MEQCICf6/MqPpFPhBcMI4Ddia20tbTMtQ3j5simTZ7mbPiYXAiA6vDQzBZ3x1RqFNQhx0CkMIVSaOUm+WjdcRF6PQ1C4ZQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12319},"main":"dist/node.js","type":"module","types":"./dist/node.d.ts","exports":{"node":"./dist/node.js","default":"./dist/browser.js"},"gitHead":"2abfb8cab5b06e5dbd6be4c276b7c5cf343d3797","scripts":{"test":"tsex test","clean":"tsex clean","compile":"tsex compile","test:watch":"tsex test --watch","compile:watch":"tsex compile --watch","prepublishOnly":"tsex prepare"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"repository":{"url":"git+https://github.com/fabiospampinato/ionstore.git","type":"git"},"_npmVersion":"8.19.2","description":"A very simple isomorphic key-value store with a Map-like API for persisting session data.","directories":{},"_nodeVersion":"18.12.0","_hasShrinkwrap":false,"devDependencies":{"fava":"^0.2.0","tsex":"^2.2.4","typescript":"^4.9.5","@types/node":"^20.4.6"},"_npmOperationalInternal":{"tmp":"tmp/ionstore_1.0.0_1691075873835_0.9681691921436892","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"ionstore","repository":{"type":"git","url":"git+https://github.com/fabiospampinato/ionstore.git"},"description":"A very simple isomorphic key-value store with a Map-like API for persisting session data.","license":"MIT","version":"1.0.1","type":"module","main":"dist/node.js","types":"./dist/node.d.ts","exports":{"node":"./dist/node.js","default":"./dist/browser.js"},"scripts":{"clean":"tsex clean","compile":"tsex compile","compile:watch":"tsex compile --watch","test":"tsex test","test:watch":"tsex test --watch","prepublishOnly":"tsex prepare"},"keywords":["simple","isomorphic","session","temporary","temp","store","storage"],"devDependencies":{"@types/node":"^18.19.70","fava":"^0.3.4","tsex":"^4.0.2","typescript":"^5.7.3"},"_id":"ionstore@1.0.1","gitHead":"3af57766208da0ce3c79c0618ec66a66b2a9af4a","bugs":{"url":"https://github.com/fabiospampinato/ionstore/issues"},"homepage":"https://github.com/fabiospampinato/ionstore#readme","_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-g+99vyka3EiNFJCnbq3NxegjV211RzGtkDUMbZGB01Con8ZqUmMx/FpWMeqgDXOqgM7QoVeDhe+CfYCWznaDVA==","shasum":"8efef03182a9064076f5248ab116131bff8a35bb","tarball":"https://registry.npmjs.org/ionstore/-/ionstore-1.0.1.tgz","fileCount":13,"unpackedSize":7829,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDemXI//2jC6ilPtwb52Vm3/sndpymtdaUuDpPiJpJQQAIhAPlN4lTVgKYK/bYNY6CH8vmgtlqMgEy9cEDIgg2gvc7x"}]},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"directories":{},"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ionstore_1.0.1_1736706669717_0.3703746696385526"},"_hasShrinkwrap":false}},"time":{"created":"2023-08-03T15:17:53.832Z","modified":"2025-01-12T18:31:10.079Z","1.0.0":"2023-08-03T15:17:53.989Z","1.0.1":"2025-01-12T18:31:09.907Z"},"bugs":{"url":"https://github.com/fabiospampinato/ionstore/issues"},"homepage":"https://github.com/fabiospampinato/ionstore#readme","keywords":["simple","isomorphic","session","temporary","temp","store","storage"],"repository":{"type":"git","url":"git+https://github.com/fabiospampinato/ionstore.git"},"description":"A very simple isomorphic key-value store with a Map-like API for persisting session data.","maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"readme":"# IonStore\n\nA _very_ simple isomorphic key-value store with a Map-like API for persisting session data.\n\nThis module simply uses a temporary file under Node, and `sessionStorage` under a browser. Check out [`isostore`](https://github.com/fabiospampinato/isostore) if you need something a bit more sophisticated.\n\n## Install\n\n```sh\nnpm install ionstore\n```\n\n## Usage\n\n```ts\nimport IonStore from 'ionstore';\n\n// Creating a store, for temporary persistence\n\nconst store = new IonStore ( 'my-store' ); // The id of the store decides the name of the file on disk\n\nstore.has ( 'foo' ); // => false\nstore.set ( 'foo', 'some_string' ); // => store\nstore.get ( 'foo' ); // => 'some_string'\nstore.delete ( 'foo' ); // => true\n```\n\n## License\n\nMIT © Fabio Spampinato\n","readmeFilename":"readme.md","license":"MIT"}