{"_id":"ionstore","_rev":"3758004","name":"ionstore","description":"A very simple isomorphic key-value store with a Map-like API for persisting session data.","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"time":{"modified":"2025-03-18T07:12:52.000Z","created":"2023-08-03T15:17:53.989Z","1.0.1":"2025-01-12T18:31:09.907Z","1.0.0":"2023-08-03T15:17:53.989Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/fabiospampinato/ionstore.git"},"versions":{"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":{"shasum":"8efef03182a9064076f5248ab116131bff8a35bb","size":3165,"noattachment":false,"key":"/ionstore/-/ionstore-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/ionstore/download/ionstore-1.0.1.tgz"},"_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,"_cnpmcore_publish_time":"2025-01-12T18:31:09.907Z","publish_time":1736706669907,"_source_registry_name":"default","_cnpm_publish_time":1736706669907},"1.0.0":{"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.","version":"1.0.0","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":"^20.4.6","fava":"^0.2.0","tsex":"^2.2.4","typescript":"^4.9.5"},"gitHead":"2abfb8cab5b06e5dbd6be4c276b7c5cf343d3797","bugs":{"url":"https://github.com/fabiospampinato/ionstore/issues"},"homepage":"https://github.com/fabiospampinato/ionstore#readme","_id":"ionstore@1.0.0","_nodeVersion":"18.12.0","_npmVersion":"8.19.2","dist":{"shasum":"20726799c2cd691a1226b36f5eb412a9d7b09086","size":4355,"noattachment":false,"key":"/ionstore/-/ionstore-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ionstore/download/ionstore-1.0.0.tgz"},"_npmUser":{"name":"fabiospampinato","email":"spampinabio@gmail.com"},"directories":{},"maintainers":[{"name":"fabiospampinato","email":"spampinabio@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ionstore_1.0.0_1691075873835_0.9681691921436892"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-08-03T15:17:53.989Z","publish_time":1691075873989,"_source_registry_name":"default","_cnpm_publish_time":1691075873989}},"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","_attachments":{},"homepage":"https://github.com/fabiospampinato/ionstore#readme","bugs":{"url":"https://github.com/fabiospampinato/ionstore/issues"},"license":"MIT"}