{"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":"http://registry-npm.ywwl.com/ionstore/download/ionstore-1.0.1.tgz","fileCount":13,"unpackedSize":7829,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDemXI//2jC6ilPtwb52Vm3/sndpymtdaUuDpPiJpJQQAIhAPlN4lTVgKYK/bYNY6CH8vmgtlqMgEy9cEDIgg2gvc7x"}],"size":3165,"noattachment":false,"key":"/ionstore/-/ionstore-1.0.1.tgz"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ionstore_1.0.1_1736706669717_0.3703746696385526"},"_hasShrinkwrap":false,"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","publish_time":1736706669907,"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"_cnpm_publish_time":1736706669907,"dist-tags":{"latest":"1.0.1"}}