{"_id":"keyv-nedb-store","_rev":"8-9e949f4c7c294322887527dc00fcc2b9","name":"keyv-nedb-store","dist-tags":{"latest":"0.1.0"},"versions":{"0.0.1":{"name":"keyv-nedb-store","version":"0.0.1","_id":"keyv-nedb-store@0.0.1","maintainers":[{"name":"snomiao","email":"snomiao@gmail.com"}],"dist":{"shasum":"3c1d63b91875e0e8f44d5aee4027def420cd03e6","tarball":"https://registry.npmjs.org/keyv-nedb-store/-/keyv-nedb-store-0.0.1.tgz","fileCount":8,"integrity":"sha512-g/MO1ZufNzh1QRxfJnTcsNQehYLS/c2QwTpc+t6WmdL+J48cGcGu9+P3XJF1voPQ+Kejn8BlPNLJl0WsaYM8Sw==","signatures":[{"sig":"MEUCIQDJk0oMfm0h34HEFQZ/N71qE45C260Ifldl6n27W7bxEQIganbMBN3wiiAWuixocLWqH2LV+v+DKAWkCYVTcv+BQrI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":62587},"type":"module","module":"index.ts","gitHead":"91133f89e0ef60d1ddf19ac419cc8cba7bf3685c","scripts":{"fmt":"biome check --fix --unsafe","build":"tsc","prepack":"bun fmt && bun run build","release":"standard-version && git push --follow-tags && npm publish"},"_npmUser":{"name":"snomiao","email":"snomiao@gmail.com"},"_npmVersion":"11.5.2","description":"A [Keyv](https://github.com/jaredwray/keyv) store implementation using [NeDB](https://github.com/seald/nedb) as the backend storage.","directories":{},"_nodeVersion":"24.5.0","dependencies":{"keyv":"^5.5.5","@seald-io/nedb":"^4.1.2"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest","@biomejs/biome":"^2.3.8","standard-version":"^9.5.0"},"peerDependencies":{"typescript":"^5.9.3"},"_npmOperationalInternal":{"tmp":"tmp/keyv-nedb-store_0.0.1_1764980691514_0.8046800802241572","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"keyv-nedb-store","version":"0.0.3","keywords":["keyv","nedb","storage","store","adapter","key-value","database","embedded","yaml"],"author":{"name":"snomiao"},"license":"MIT","_id":"keyv-nedb-store@0.0.3","maintainers":[{"name":"snomiao","email":"snomiao@gmail.com"}],"homepage":"https://github.com/snomiao/keyv-nedb-store#readme","bugs":{"url":"https://github.com/snomiao/keyv-nedb-store/issues"},"dist":{"shasum":"f8f3d4068fdc2a67907f5943b50985e4a11171d6","tarball":"https://registry.npmjs.org/keyv-nedb-store/-/keyv-nedb-store-0.0.3.tgz","fileCount":7,"integrity":"sha512-M+y7gqlIUOmIq+OdCrMq7khVu3fTeOHC9tphCPISZY/PXPFWisCPW7wD0yo9Hc2KqCAGZ8b1mu7s22ctNQ46qw==","signatures":[{"sig":"MEQCIDEn82R//49ock+lp510gE0bBl9JaTEiN2LGr7OeIqLYAiBXZ5n3YcXcTWx9A3iV3hkSK4kJWiRLACczKuyxAuEuWA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15111},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"gitHead":"037266db22106ac2af9d5ca0b4e063e598f8fc60","scripts":{"fmt":"biome check --unsafe --write","build":"tsc","prepack":"bun fmt && bun run build","release":"standard-version && git push --follow-tags && npm publish"},"_npmUser":{"name":"snomiao","email":"snomiao@gmail.com"},"repository":{"url":"git+https://github.com/snomiao/keyv-nedb-store.git","type":"git"},"_npmVersion":"11.5.2","description":"A Keyv store implementation using NeDB as the backend storage","directories":{},"_nodeVersion":"24.5.0","dependencies":{"@seald-io/nedb":"^4.1.2"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest","typescript":"^5.9.3","@biomejs/biome":"^2.3.8","standard-version":"^9.5.0"},"peerDependencies":{"keyv":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/keyv-nedb-store_0.0.3_1764981566321_0.4121015872090852","host":"s3://npm-registry-packages-npm-production"}},"0.0.4":{"name":"keyv-nedb-store","version":"0.0.4","keywords":["keyv","nedb","storage","store","adapter","key-value","database","embedded","yaml"],"author":{"name":"snomiao"},"license":"MIT","_id":"keyv-nedb-store@0.0.4","maintainers":[{"name":"snomiao","email":"snomiao@gmail.com"}],"homepage":"https://github.com/snomiao/keyv-nedb-store#readme","bugs":{"url":"https://github.com/snomiao/keyv-nedb-store/issues"},"dist":{"shasum":"c570e22d381e4dcf4a409a213f1f9d91aec2441e","tarball":"https://registry.npmjs.org/keyv-nedb-store/-/keyv-nedb-store-0.0.4.tgz","fileCount":7,"integrity":"sha512-0VrsXRhcCOS6K4K3jp9xZlYWaLYeCjzWEJEY6FoUEdP5KQwQbd10KOw+VvrjS1eD/Ws4l6iLoZyah+iVy3d6eg==","signatures":[{"sig":"MEYCIQCAmSuR7JxUKHXamrY/CqeepPd4g5ZjCpeTSDV3zmo1FQIhAIrEHhxw/dH6aKdS+8MOEt5n6M0r/T1Rr1p7ciGYr5ER","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15373},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"gitHead":"c7e3cdf5464c484cf82edb9514b48aa254c78cd6","scripts":{"fmt":"biome check --unsafe --write","build":"tsc","prepack":"bun fmt && bun run build","release":"standard-version && git push --follow-tags && npm publish"},"_npmUser":{"name":"snomiao","email":"snomiao@gmail.com"},"repository":{"url":"git+https://github.com/snomiao/keyv-nedb-store.git","type":"git"},"_npmVersion":"11.5.2","description":"A Keyv store implementation using NeDB as the backend storage","directories":{},"_nodeVersion":"24.5.0","dependencies":{"@seald-io/nedb":"^4.1.2"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest","typescript":"^5.9.3","@biomejs/biome":"^2.3.8","standard-version":"^9.5.0"},"peerDependencies":{"keyv":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/keyv-nedb-store_0.0.4_1764981657316_0.8292829876623482","host":"s3://npm-registry-packages-npm-production"}},"0.0.5":{"name":"keyv-nedb-store","version":"0.0.5","keywords":["keyv","nedb","storage","store","adapter","key-value","database","embedded","yaml"],"author":{"name":"snomiao"},"license":"MIT","_id":"keyv-nedb-store@0.0.5","maintainers":[{"name":"snomiao","email":"snomiao@gmail.com"}],"homepage":"https://github.com/snomiao/keyv-nedb-store#readme","bugs":{"url":"https://github.com/snomiao/keyv-nedb-store/issues"},"dist":{"shasum":"679eae83af97508468107d9ccbab8a76d08c6e9c","tarball":"https://registry.npmjs.org/keyv-nedb-store/-/keyv-nedb-store-0.0.5.tgz","fileCount":7,"integrity":"sha512-GdaCBeHVxxTPO0Eyw5SN03UqgrMjzrowX2LyaQmBxI9W4TGNEvn0LtuhLrTcClvx7ulVwD8H92pYspHF7qcjMw==","signatures":[{"sig":"MEUCIF0Ody6moYNjq5QriGsaK/yJGiGqWpy45xXOuMiz1C5fAiEAwpyf8OpAYr2mCLMldSJTQ7I5AVCjXoDHRB2quuhEEJk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15405},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"gitHead":"9b6a746b3c2bd22918a8d9977fb30926cc324323","scripts":{"fmt":"biome check --unsafe --write","build":"tsc","prepack":"bun fmt && bun run build","release":"standard-version && git push --follow-tags && npm publish"},"_npmUser":{"name":"snomiao","email":"snomiao@gmail.com"},"repository":{"url":"git+https://github.com/snomiao/keyv-nedb-store.git","type":"git"},"_npmVersion":"11.5.2","description":"A Keyv store implementation using NeDB as the backend storage","directories":{},"_nodeVersion":"24.5.0","dependencies":{"@seald-io/nedb":"^4.1.2"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest","typescript":"^5.9.3","@biomejs/biome":"^2.3.8","standard-version":"^9.5.0"},"peerDependencies":{"keyv":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/keyv-nedb-store_0.0.5_1764981914253_0.393539663347259","host":"s3://npm-registry-packages-npm-production"}},"0.0.6":{"name":"keyv-nedb-store","version":"0.0.6","keywords":["keyv","nedb","storage","store","adapter","key-value","database","embedded","yaml"],"author":{"name":"snomiao"},"license":"MIT","_id":"keyv-nedb-store@0.0.6","maintainers":[{"name":"snomiao","email":"snomiao@gmail.com"}],"homepage":"https://github.com/snomiao/keyv-nedb-store#readme","bugs":{"url":"https://github.com/snomiao/keyv-nedb-store/issues"},"dist":{"shasum":"0e03ed991568e5c120c755b59b40f2a7efb4c5c0","tarball":"https://registry.npmjs.org/keyv-nedb-store/-/keyv-nedb-store-0.0.6.tgz","fileCount":7,"integrity":"sha512-ZMDAcXnPV2KQmxAuSSy+cNifVoVf5mJHV3slS5EgBxK8I3OC11f9hPnMFn7UxcbdHgO0UcaaZrGV0e28JlH4gw==","signatures":[{"sig":"MEYCIQCoGNeuiGpnrxqbnEB2kpOLfAP+bomfkG356eYppNUX6gIhAJXjZgM+SUnwDEtJZcXVd9h1vl1CKk9j/7netLeWW4+D","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15661},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"gitHead":"dd83cddd5cdf9ac8b3b393dc8ca4b1883929d4c2","scripts":{"fmt":"biome check --unsafe --write","build":"tsc","prepack":"bun fmt && bun run build","release":"standard-version && git push --follow-tags && npm publish"},"_npmUser":{"name":"snomiao","email":"snomiao@gmail.com"},"repository":{"url":"git+https://github.com/snomiao/keyv-nedb-store.git","type":"git"},"_npmVersion":"11.5.2","description":"A Keyv store implementation using NeDB as the backend storage","directories":{},"_nodeVersion":"24.5.0","dependencies":{"@seald-io/nedb":"^4.1.2"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest","typescript":"^5.9.3","@biomejs/biome":"^2.3.8","standard-version":"^9.5.0"},"peerDependencies":{"keyv":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/keyv-nedb-store_0.0.6_1764983676309_0.5930914039411568","host":"s3://npm-registry-packages-npm-production"}},"0.0.7":{"name":"keyv-nedb-store","version":"0.0.7","keywords":["keyv","nedb","storage","store","adapter","key-value","database","embedded","yaml"],"author":{"name":"snomiao"},"license":"MIT","_id":"keyv-nedb-store@0.0.7","maintainers":[{"name":"snomiao","email":"snomiao@gmail.com"}],"homepage":"https://github.com/snomiao/keyv-nedb-store#readme","bugs":{"url":"https://github.com/snomiao/keyv-nedb-store/issues"},"dist":{"shasum":"93bab369acc83a777acd520ae736e322763b93cf","tarball":"https://registry.npmjs.org/keyv-nedb-store/-/keyv-nedb-store-0.0.7.tgz","fileCount":7,"integrity":"sha512-HC1cd0322tV3eDZ0Odv/7gFosb1m5x4L0hagodORu6ZPVhNyi8+DHbBKZMGD7x8sfEpE+bNQ07N7pbL9FERoRw==","signatures":[{"sig":"MEUCIQDgHFNACBlevH5fv4PKPtZU5bIR7u3GAKxxpOZfEjsnEAIgVxbCSVj5F288vrGkesL2oOsKOTXKdfVF92UrZ9O1jQU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18932},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"gitHead":"85a158112c69a0483cd9dfe8e474f0a3fadb229e","scripts":{"fmt":"biome check --unsafe --write","build":"tsc","prepack":"bun fmt && bun run build","release":"standard-version && git push --follow-tags && npm publish"},"_npmUser":{"name":"snomiao","email":"snomiao@gmail.com"},"repository":{"url":"git+https://github.com/snomiao/keyv-nedb-store.git","type":"git"},"_npmVersion":"11.5.2","description":"A Keyv store implementation using NeDB as the backend storage","directories":{},"_nodeVersion":"24.5.0","dependencies":{"@seald-io/nedb":"^4.1.2"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest","typescript":"^5.9.3","@biomejs/biome":"^2.3.8","standard-version":"^9.5.0"},"peerDependencies":{"keyv":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/keyv-nedb-store_0.0.7_1764986154612_0.983457604844687","host":"s3://npm-registry-packages-npm-production"}},"0.0.10":{"name":"keyv-nedb-store","version":"0.0.10","keywords":["keyv","nedb","storage","store","adapter","key-value","database","embedded","yaml"],"author":{"name":"snomiao"},"license":"MIT","_id":"keyv-nedb-store@0.0.10","maintainers":[{"name":"snomiao","email":"snomiao@gmail.com"}],"homepage":"https://github.com/snomiao/keyv-nedb-store#readme","bugs":{"url":"https://github.com/snomiao/keyv-nedb-store/issues"},"dist":{"shasum":"16dabb4db3f9cdfb31b06f849f95def909ff14cb","tarball":"https://registry.npmjs.org/keyv-nedb-store/-/keyv-nedb-store-0.0.10.tgz","fileCount":11,"integrity":"sha512-cgzze3//v+lXOMEhTYJ2SWgQvE83xNDUPbQ1MyaXwSjISijlcvua/dJb/9D9nbI40yVlFWJmOgl6y5gkLU1N6Q==","signatures":[{"sig":"MEQCIDvrO+H70/5/OAyiE574qWlmifNPRBk9LPifiVEM/oevAiAE3Z/RYeQIG2ZWWqVonPn/e/lAhLbv/iuDkjtR6FnqSA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/keyv-nedb-store@0.0.10","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":55337},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"gitHead":"78bb195342559ab8eb98060dbf9d618d4b9ed739","scripts":{"fmt":"biome check --unsafe --write","test":"bun test","build":"tsc","prepack":"bun fmt && bun run build","release":"standard-version && git push --follow-tags && npm publish"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:1f9ef433-3abe-4631-8741-2da25c37d97d"}},"repository":{"url":"git+https://github.com/snomiao/keyv-nedb-store.git","type":"git"},"_npmVersion":"11.7.0","description":"A Keyv store implementation using NeDB as the backend storage","directories":{},"_nodeVersion":"25.2.1","dependencies":{"@seald-io/nedb":"^4.1.2"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest","typescript":"^5.9.3","@biomejs/biome":"^2.3.8","semantic-release":"^25.0.2","standard-version":"^9.5.0"},"peerDependencies":{"keyv":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/keyv-nedb-store_0.0.10_1766119088072_0.97348995468299","host":"s3://npm-registry-packages-npm-production"}},"0.1.0":{"name":"keyv-nedb-store","version":"0.1.0","description":"A Keyv store implementation using NeDB as the backend storage","keywords":["adapter","database","embedded","key-value","keyv","nedb","storage","store","yaml"],"homepage":"https://github.com/snomiao/keyv-nedb-store#readme","bugs":{"url":"https://github.com/snomiao/keyv-nedb-store/issues"},"license":"MIT","author":{"name":"snomiao"},"repository":{"type":"git","url":"git+https://github.com/snomiao/keyv-nedb-store.git"},"type":"module","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"scripts":{"build":"tsc","fmt":"oxlint --fix && oxfmt","prepack":"bun fmt && bun run build","test":"bun test","release":"standard-version && git push --follow-tags && npm publish"},"dependencies":{"@seald-io/nedb":"^4.1.2"},"devDependencies":{"@types/bun":"latest","@types/node":"^25.0.3","oxfmt":"^0.26.0","oxlint":"^1.41.0","semantic-release":"^25.0.2","standard-version":"^9.5.0","typescript":"^5.9.3"},"peerDependencies":{"keyv":"^5.5.5"},"engines":{"node":">=18.0.0"},"gitHead":"5ce4b4d3e77e5b9f744bcdf7184d7284b9733e69","_id":"keyv-nedb-store@0.1.0","_nodeVersion":"25.4.0","_npmVersion":"11.7.0","dist":{"integrity":"sha512-22n5UclifINx6dWmQMBZEtqH4+uaK8JD8i1+PbkJ1vmCCn6BTEdd0ItWqQAY/bKtsgbE6a+Azy/Wv2RuMrfo4g==","shasum":"20227161094a7781be2e98844b44cb6bba63eafc","tarball":"https://registry.npmjs.org/keyv-nedb-store/-/keyv-nedb-store-0.1.0.tgz","fileCount":7,"unpackedSize":23698,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/keyv-nedb-store@0.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIDqOjs0RRk7kutzPE08OJNlM8K8+uhJBbxD/8B47vSKoAiEA4bDUefWtWKKiM5cAA104Y3bYG5+StDcHmdmYP51YkMw="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:1f9ef433-3abe-4631-8741-2da25c37d97d"}},"directories":{},"maintainers":[{"name":"snomiao","email":"snomiao@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/keyv-nedb-store_0.1.0_1769015284658_0.40680662041337534"},"_hasShrinkwrap":false}},"time":{"created":"2025-12-06T00:24:51.513Z","modified":"2026-01-21T17:08:05.077Z","0.0.1":"2025-12-06T00:24:51.651Z","0.0.3":"2025-12-06T00:39:26.509Z","0.0.4":"2025-12-06T00:40:57.521Z","0.0.5":"2025-12-06T00:45:14.397Z","0.0.6":"2025-12-06T01:14:36.451Z","0.0.7":"2025-12-06T01:55:54.784Z","0.0.10":"2025-12-19T04:38:08.240Z","0.1.0":"2026-01-21T17:08:04.808Z"},"bugs":{"url":"https://github.com/snomiao/keyv-nedb-store/issues"},"author":{"name":"snomiao"},"license":"MIT","homepage":"https://github.com/snomiao/keyv-nedb-store#readme","keywords":["adapter","database","embedded","key-value","keyv","nedb","storage","store","yaml"],"repository":{"type":"git","url":"git+https://github.com/snomiao/keyv-nedb-store.git"},"description":"A Keyv store implementation using NeDB as the backend storage","maintainers":[{"name":"snomiao","email":"snomiao@gmail.com"}],"readme":"# keyv-nedb-store\n\nA [Keyv](https://github.com/jaredwray/keyv) store implementation using [NeDB](https://github.com/seald/nedb) ([@seald-io/nedb](https://www.npmjs.com/package/@seald-io/nedb)) as the backend storage.\n\n## Features\n\n- **File-based storage** - Persistent key-value storage using NeDB's file system backend\n- **YAML-friendly** - NeDB files are human-readable and linter-friendly\n- **Namespace support** - Organize your data with namespaces\n- **TTL support** - Set time-to-live for automatic key expiration\n- **Custom serialization** - Optional JSON serialization for complex data types\n- **TypeScript** - Fully typed with TypeScript support\n\n## Installation\n\n```bash\nbun install keyv-nedb-store @seald-io/nedb\n```\n\nOr with npm:\n\n```bash\nnpm install keyv-nedb-store @seald-io/nedb\n```\n\n## Usage\n\n### Basic Example\n\n```ts\nimport Keyv from \"keyv\";\nimport { KeyvNedbStore } from \"keyv-nedb-store\";\n\n// Create a store with file-based persistence\nconst store = new KeyvNedbStore(\".cache/database.nedb.yaml\");\n\nconst keyv = new Keyv({ store });\n\n// Set a value\nawait keyv.set(\"foo\", \"bar\");\n\n// Get a value\nconst value = await keyv.get(\"foo\"); // \"bar\"\n\n// Delete a value\nawait keyv.delete(\"foo\");\n\n// Clear all values\nawait keyv.clear();\n```\n\n### With Namespace\n\n```ts\nconst store = new KeyvNedbStore({\n  filename: \"database.nedb.yaml\",\n  namespace: \"myapp\",\n  autoload: true,\n});\n\nconst keyv = new Keyv({ store });\n\nawait keyv.set(\"user:1\", { name: \"Alice\" });\n// Stored with key: \"myapp:user:1\"\n```\n\n### With TTL (Time-To-Live)\n\n```ts\nconst keyv = new Keyv({ store });\n\n// Set a value that expires in 1 second\nawait keyv.set(\"temp\", \"value\", 1000);\n\n// Wait for expiration\nawait new Promise((resolve) => setTimeout(resolve, 1100));\n\nconst value = await keyv.get(\"temp\"); // undefined\n```\n\n### With Custom Serialization\n\n```ts\nconst store = new KeyvNedbStore({\n  filename: \"database.nedb.yaml\",\n  serializer: {\n    stringify: JSON.stringify,\n    parse: JSON.parse,\n  },\n  autoload: true,\n});\n\nconst keyv = new Keyv({ store });\n\n// Store complex objects\nawait keyv.set(\"user\", { id: 1, name: \"Alice\", roles: [\"admin\", \"user\"] });\n```\n\n## API\n\n### `new KeyvNedbStore(options)`\n\nCreates a new NeDB store instance.\n\n#### Options\n\nAll [NeDB DataStoreOptions](https://github.com/seald/nedb#creatingloading-a-database) are supported, plus:\n\n- `namespace` (string, optional) - Prefix for all keys\n- `serializer` (object, optional) - Custom serialization for values\n  - `stringify` (function) - Serialize value to string\n  - `parse` (function) - Deserialize string to value\n\nCommon NeDB options:\n\n- `filename` (string) - Path to the database file\n- `autoload` (boolean) - Automatically load the database\n- `inMemoryOnly` (boolean) - Use in-memory only (no persistence)\n\n### Store Methods\n\nImplements the [Keyv Store Adapter](https://github.com/jaredwray/keyv#store-adapters) interface:\n\n- `get(key)` - Get a value by key\n- `getMany(keys)` - Get multiple values by keys\n- `set(key, value, ttl?)` - Set a value with optional TTL in milliseconds\n- `delete(key)` - Delete a value by key\n- `clear()` - Clear all values (respects namespace)\n- `iterator(namespace?)` - Async iterator for all key-value pairs\n\n### Iteration\n\nThe store supports iteration over all entries:\n\n```ts\nconst store = new KeyvNedbStore(\"database.nedb.yaml\");\nconst keyv = new Keyv({ store });\n\n// Add some data\nawait keyv.set(\"user:1\", { name: \"Alice\" });\nawait keyv.set(\"user:2\", { name: \"Bob\" });\n\n// Iterate over all entries using the store's iterator\nfor await (const [key, value] of store.iterator()) {\n  console.log(key, value);\n  // Output:\n  // user:1 { name: 'Alice' }\n  // user:2 { name: 'Bob' }\n}\n```\n\n## Why NeDB?\n\nNeDB is a lightweight, embedded database that:\n\n- Requires no separate database server\n- Stores data in human-readable files\n- Works great with YAML linters\n- Provides a MongoDB-like API\n- Supports indexing and complex queries\n\nPerfect for:\n\n- Configuration storage\n- Cache storage\n- Small to medium datasets\n- Serverless environments\n- Development and testing\n\n## Development\n\nBuilt with [Bun](https://bun.com):\n\n```bash\n# Install dependencies\nbun install\n\n# Format code\nbun run fmt\n\n# Build\nbun run build\n```\n\n## License\n\nMIT\n\n## Related\n\n- [Keyv](https://github.com/jaredwray/keyv) - Simple key-value storage with support for multiple backends\n- [NeDB](https://github.com/seald/nedb) - Embedded persistent database for Node.js\n","readmeFilename":"README.md"}