{"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":{"integrity":"sha512-ikEvmeZFh9u5SkjKbFqJlmmhaQTulB3P7QoSoZ/xL8EDP5uj5QWbPeKcQ8ZJtszBLHRRnhIJJE8P1dhFx/oCMw==","shasum":"20726799c2cd691a1226b36f5eb412a9d7b09086","tarball":"http://registry-npm.ywwl.com/ionstore/download/ionstore-1.0.0.tgz","fileCount":21,"unpackedSize":12319,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICf6/MqPpFPhBcMI4Ddia20tbTMtQ3j5simTZ7mbPiYXAiA6vDQzBZ3x1RqFNQhx0CkMIVSaOUm+WjdcRF6PQ1C4ZQ=="}],"size":4355,"noattachment":false,"key":"/ionstore/-/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,"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 --save 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":1691075873989,"_cnpm_publish_time":1691075873989,"dist-tags":{"latest":"1.0.1"}}