{"_id":"@digitaliaconnect/keyvaluestorage","_rev":"2-e391a4be15841cbff7496a39eae59dd3","name":"@digitaliaconnect/keyvaluestorage","dist-tags":{"latest":"1.1.2"},"versions":{"1.1.1":{"name":"@digitaliaconnect/keyvaluestorage","version":"1.1.1","keywords":["iso","isomorphic","store","storage","localstorage","asyncstorage","sequelize"],"author":{"name":"WalletConnect, Inc.","email":"walletconnect.com"},"license":"MIT","_id":"@digitaliaconnect/keyvaluestorage@1.1.1","maintainers":[{"name":"cosimousa","email":"cosimousa@icloud.com"}],"homepage":"https://github.com/walletconnect/walletconnect-utils","bugs":{"url":"https://github.com/walletconnect/walletconnect-utils/issues"},"dist":{"shasum":"1c19fe6abd8e982cffe6f84ef9ba97fef65020b6","tarball":"https://registry.npmjs.org/@digitaliaconnect/keyvaluestorage/-/keyvaluestorage-1.1.1.tgz","fileCount":37,"integrity":"sha512-e5HGpFrWClcUjBlV8ns12/LhKjw1eG9BVFS+9hgVZ+kESz8tcYfzqc6y/3j4/j5HPa3DpDQjmeHk+S1Vkims8w==","signatures":[{"sig":"MEQCIDlsDkt/fuKzC3W9Vwboxekd1NzNE/MN10V1PK/3cBR6AiABGoTDr/p68sQbxXFqsKqy+EqRoF6SM8uggTRiu+Wfew==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":84169},"main":"dist/index.cjs.js","types":"dist/types/index.d.ts","unpkg":"dist/index.umd.js","module":"dist/index.es.js","browser":"dist/index.es.js","scripts":{"test":"rm -rf ./test/dbs/* && env TS_NODE_PROJECT=\"tsconfig.cjs.json\" mocha --timeout 5000 --exit -r ts-node/register ./test/**/*.test.ts","build":"npm run build:pre && npm run build:source && npm run build:types","clean":"rm -rf dist","format":"prettier --config ../../.prettierrc --write {src,test}/**/*.ts","prettier":"prettier --config ../../.prettierrc --check {src,test}/**/*.ts","build:pre":"npm run clean","build:types":"tsc","build:source":"rollup --config rollup.config.js","prepublishOnly":"npm run test && npm run build","npm-publish:canary":"npm publish --access public --tag canary","npm-publish:latest":"npm publish --access public --tag latest"},"_npmUser":{"name":"cosimousa","email":"cosimousa@icloud.com"},"repository":{"url":"git+https://github.com/walletconnect/walletconnect-utils.git","type":"git"},"_npmVersion":"10.9.4","description":"Isomorphic Key-Value Storage","directories":{},"_nodeVersion":"22.21.1","dependencies":{"unstorage":"^1.9.0","idb-keyval":"^6.2.1","@walletconnect/safe-json":"^1.0.1"},"react-native":"dist/react-native/index.js","_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.6","mocha":"^10.0.0","ts-node":"^10.9.1","webpack":"^4.41.6","deepmerge":"^4.2.2","proxyquire":"^2.1.3","@types/jest":"^26.0.15","@types/node":"^14.14.7","webpack-cli":"^3.3.11","classic-level":"^1.2.0","@walletconnect/time":"^1.0.2","@react-native-async-storage/async-storage":"^1.17.3"},"peerDependencies":{"@react-native-async-storage/async-storage":"1.x"},"peerDependenciesMeta":{"@react-native-async-storage/async-storage":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/keyvaluestorage_1.1.1_1775251711509_0.008974038810126483","host":"s3://npm-registry-packages-npm-production"}},"1.1.2":{"name":"@digitaliaconnect/keyvaluestorage","description":"Isomorphic Key-Value Storage","version":"1.1.2","author":{"name":"WalletConnect, Inc.","email":"walletconnect.com"},"license":"MIT","keywords":["iso","isomorphic","store","storage","localstorage","asyncstorage","sequelize"],"main":"dist/index.cjs.js","module":"dist/index.es.js","browser":"dist/index.es.js","unpkg":"dist/index.umd.js","types":"dist/types/index.d.ts","react-native":"dist/react-native/index.js","homepage":"https://github.com/walletconnect/walletconnect-utils","repository":{"type":"git","url":"git+https://github.com/walletconnect/walletconnect-utils.git"},"bugs":{"url":"https://github.com/walletconnect/walletconnect-utils/issues"},"scripts":{"clean":"rm -rf dist","build:pre":"npm run clean","build:types":"tsc","build:source":"rollup --config rollup.config.js","build":"npm run build:pre && npm run build:source && npm run build:types","test":"rm -rf ./test/dbs/* && env TS_NODE_PROJECT=\"tsconfig.cjs.json\" mocha --timeout 5000 --exit -r ts-node/register ./test/**/*.test.ts","npm-publish:latest":"npm publish --access public --tag latest","npm-publish:canary":"npm publish --access public --tag canary","prepublishOnly":"npm run test && npm run build","prettier":"prettier --config ../../.prettierrc --check {src,test}/**/*.ts","format":"prettier --config ../../.prettierrc --write {src,test}/**/*.ts"},"dependencies":{"@walletconnect/safe-json":"^1.0.1","idb-keyval":"^6.2.1","unstorage":"^1.9.0"},"peerDependencies":{"@react-native-async-storage/async-storage":"1.x"},"peerDependenciesMeta":{"@react-native-async-storage/async-storage":{"optional":true}},"devDependencies":{"@react-native-async-storage/async-storage":"^1.17.3","@types/jest":"^26.0.15","@types/node":"^14.14.7","@walletconnect/time":"^1.0.2","chai":"^4.3.6","classic-level":"^1.2.0","deepmerge":"^4.2.2","mocha":"^10.0.0","proxyquire":"^2.1.3","ts-node":"^10.9.1","webpack":"^4.41.6","webpack-cli":"^3.3.11"},"_id":"@digitaliaconnect/keyvaluestorage@1.1.2","_nodeVersion":"22.21.1","_npmVersion":"10.9.4","dist":{"integrity":"sha512-WCdOWUP//s2dNFn0ndkx5GhYdaZ1sv/YjUoL2T6uL39xpS0gyGpEamdojVMlAkiD2dm0B0W+8+TSUkx+j0bDGw==","shasum":"434867e3a7c314e779f261fca2543b2d82da104e","tarball":"https://registry.npmjs.org/@digitaliaconnect/keyvaluestorage/-/keyvaluestorage-1.1.2.tgz","fileCount":37,"unpackedSize":84169,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFq/EFeOhK+j/QX5zXUcEVHuZEw+Zs/A12L5g9w/GiUZAiEA77lROGOmBgVvyOOaMntuVAzR4Ru8jj7y6yzCcU26IWQ="}]},"_npmUser":{"name":"cosimousa","email":"cosimousa@icloud.com"},"directories":{},"maintainers":[{"name":"cosimousa","email":"cosimousa@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/keyvaluestorage_1.1.2_1775251953673_0.28235995339629727"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-03T21:28:31.438Z","modified":"2026-04-03T21:32:33.948Z","1.1.1":"2026-04-03T21:28:31.666Z","1.1.2":"2026-04-03T21:32:33.824Z"},"bugs":{"url":"https://github.com/walletconnect/walletconnect-utils/issues"},"author":{"name":"WalletConnect, Inc.","email":"walletconnect.com"},"license":"MIT","homepage":"https://github.com/walletconnect/walletconnect-utils","keywords":["iso","isomorphic","store","storage","localstorage","asyncstorage","sequelize"],"repository":{"type":"git","url":"git+https://github.com/walletconnect/walletconnect-utils.git"},"description":"Isomorphic Key-Value Storage","maintainers":[{"name":"cosimousa","email":"cosimousa@icloud.com"}],"readme":"# keyvaluestorage [![npm version](https://badge.fury.io/js/keyvaluestorage.svg)](https://badge.fury.io/js/keyvaluestorage)\n\nIsomorphic Key-Value Storage\n\n## Example\n\n```typescript\nimport KeyValueStorage from \"keyvaluestorage\";\n\nconst options = {\n  // required for React-Native platform\n  // package from @react-native-async-storage/async-storage\n  asyncStorage: AsyncStorage\n  // required for NodeJS platform\n  // sqlite database connection (in-memory supported)\n  database: 'foobar.db'\n  // optional for NodeJS platform\n  // sqlite table name (default: 'keyvaluestorage')\n  tableName: 'keyvaluestorage'\n}\n\nconst storage = new KeyValueStorage(options)\n\n// setItem\nawait storage.setItem('user1', { name: 'John Doe', age: 21 })\n\n// getItem\nconst item = await storage.getItem('user1')\n\n// removeItem\nawait storage.removeItem('user1')\n```\n\n## API\n\n```typescript\nexport class IKeyValueStorage {\n  public getKeys(): Promise<string[]>;\n  public getEntries<T = any>(): Promise<[string, T][]>;\n  public getItem<T = any>(key: string): Promise<T | undefined>;\n  public setItem<T = any>(key: string, value: T): Promise<void>;\n  public removeItem(key: string): Promise<void>;\n}\n```\n","readmeFilename":"README.md"}