{"_id":"classic-level","_rev":"4210837","name":"classic-level","description":"An abstract-level database backed by LevelDB","dist-tags":{"latest":"3.0.0"},"maintainers":[{"name":"vweevers","email":""}],"time":{"modified":"2026-03-04T17:05:46.000Z","created":"2022-03-04T15:19:09.170Z","3.0.0":"2025-04-20T14:05:25.028Z","2.0.0":"2024-10-21T00:12:25.294Z","1.4.1":"2024-01-20T16:31:21.702Z","1.3.0":"2023-04-07T10:37:51.898Z","1.2.0":"2022-03-25T11:26:23.061Z","1.1.0":"2022-03-06T15:08:41.597Z","1.0.0":"2022-03-04T15:19:09.170Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/Level/classic-level.git"},"versions":{"3.0.0":{"name":"classic-level","version":"3.0.0","description":"An abstract-level database backed by LevelDB","license":"MIT","main":"index.js","types":"./index.d.ts","scripts":{"install":"node-gyp-build","test":"standard && (nyc -s tape test/*-test.js | tap-arc) && nyc report","test-pessimistic":"tape test/*-test.js | tap-arc -pv","test-gc":"node --expose-gc test/gc.js","test-electron":"electron test/electron.js","test-prebuild":"cross-env PREBUILDS_ONLY=1 npm t","coverage":"nyc report -r lcovonly","rebuild":"npm run install --build-from-source","prebuild":"prebuildify -t 18.20.4 --napi --strip","download-prebuilds":"prebuildify-ci download","hallmark":"hallmark --fix","dependency-check":"dependency-check --no-dev -i napi-macros . test/*.js","prepublishOnly":"npm run dependency-check","prebuild-linux-arm":"prebuildify-cross -i linux-armv6 -i linux-armv7 -i linux-arm64-lts -t 18.20.4 --napi --strip","prebuild-android-arm":"prebuildify-cross -i android-armv7 -i android-arm64 -t 18.20.4 --napi --strip","prebuild-linux-x64":"prebuildify-cross -i almalinux-devtoolset11 -i alpine -t 18.20.4 --napi --strip","prebuild-darwin-x64+arm64":"prebuildify -t 18.20.4 --napi --strip --arch x64+arm64","prebuild-win32-x86":"prebuildify -t 18.20.4 --napi --strip","prebuild-win32-x64":"prebuildify -t 18.20.4 --napi --strip"},"dependencies":{"abstract-level":"^3.1.0","module-error":"^1.0.1","napi-macros":"^2.2.2","node-gyp-build":"^4.3.0"},"devDependencies":{"@types/node":"^22.14.1","@voxpelli/tsconfig":"^15.1.2","cross-env":"^7.0.3","dependency-check":"^4.1.0","du":"^1.0.0","electron":"^35.2.0","glob":"^10.4.5","hallmark":"^5.0.1","mkfiletree":"^2.0.0","node-gyp":"^11.2.0","nyc":"^17.1.0","prebuildify":"^6.0.1","prebuildify-ci":"^1.0.4","prebuildify-cross":"^5.1.1","readfiletree":"^1.0.0","standard":"^17.0.0","tap-arc":"^1.3.2","tape":"^5.9.0","tempy":"^1.0.1","typescript":"^5.8.3"},"gypfile":true,"repository":{"type":"git","url":"git+https://github.com/Level/classic-level.git"},"homepage":"https://github.com/Level/classic-level","keywords":["leveldb","level"],"engines":{"node":">=18"},"_id":"classic-level@3.0.0","gitHead":"557f81222164471a83b39648dd793a36ae210dad","bugs":{"url":"https://github.com/Level/classic-level/issues"},"_nodeVersion":"22.7.0","_npmVersion":"10.8.2","dist":{"shasum":"2be00defbaf7d204ac33da77988993c6c337ba67","size":2387814,"noattachment":false,"key":"/classic-level/-/classic-level-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/classic-level/download/classic-level-3.0.0.tgz"},"_npmUser":{"name":"vweevers","email":"dev@vincentweevers.nl"},"directories":{},"maintainers":[{"name":"vweevers","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/classic-level_3.0.0_1745157924787_0.937392453967264"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-04-20T14:05:25.028Z","publish_time":1745157925028,"_source_registry_name":"default","hasInstallScript":true,"_cnpm_publish_time":1745157925028},"2.0.0":{"name":"classic-level","version":"2.0.0","description":"An abstract-level database backed by LevelDB","license":"MIT","main":"index.js","types":"./index.d.ts","scripts":{"install":"node-gyp-build","test":"standard && (nyc -s tape test/*-test.js | tap-arc) && nyc report","test-pessimistic":"tape test/*-test.js | tap-arc -pv","test-gc":"node --expose-gc test/gc.js","test-electron":"electron test/electron.js","test-prebuild":"cross-env PREBUILDS_ONLY=1 npm t","coverage":"nyc report -r lcovonly","rebuild":"npm run install --build-from-source","prebuild":"prebuildify -t 18.20.4 --napi --strip","download-prebuilds":"prebuildify-ci download","hallmark":"hallmark --fix","dependency-check":"dependency-check --no-dev -i napi-macros . test/*.js","prepublishOnly":"npm run dependency-check","prebuild-linux-arm":"prebuildify-cross -i linux-armv6 -i linux-armv7 -i linux-arm64-lts -t 18.20.4 --napi --strip","prebuild-android-arm":"prebuildify-cross -i android-armv7 -i android-arm64 -t 18.20.4 --napi --strip","prebuild-linux-x64":"prebuildify-cross -i almalinux-devtoolset11 -i alpine -t 18.20.4 --napi --strip","prebuild-darwin-x64+arm64":"prebuildify -t 18.20.4 --napi --strip --arch x64+arm64","prebuild-win32-x86":"prebuildify -t 18.20.4 --napi --strip","prebuild-win32-x64":"prebuildify -t 18.20.4 --napi --strip"},"dependencies":{"abstract-level":"^2.0.0","module-error":"^1.0.1","napi-macros":"^2.2.2","node-gyp-build":"^4.3.0"},"devDependencies":{"@types/node":"^22.7.7","@voxpelli/tsconfig":"^15.0.0","cross-env":"^7.0.3","dependency-check":"^4.1.0","du":"^1.0.0","electron":"^30.5.1","glob":"^8.0.1","hallmark":"^5.0.1","mkfiletree":"^2.0.0","node-gyp":"^10.2.0","nyc":"^17.1.0","prebuildify":"^6.0.1","prebuildify-ci":"^1.0.4","prebuildify-cross":"^5.1.1","readfiletree":"^1.0.0","rimraf":"^3.0.0","standard":"^17.0.0","tap-arc":"^1.3.2","tape":"^5.9.0","tempy":"^1.0.1","typescript":"^5.6.3"},"gypfile":true,"repository":{"type":"git","url":"git+https://github.com/Level/classic-level.git"},"homepage":"https://github.com/Level/classic-level","keywords":["leveldb","level"],"engines":{"node":">=18"},"_id":"classic-level@2.0.0","gitHead":"26e8c7f456d418ee0ce854013c3a074268065c97","bugs":{"url":"https://github.com/Level/classic-level/issues"},"_nodeVersion":"22.7.0","_npmVersion":"10.8.2","dist":{"shasum":"6fd9ca686bbcd645e35caaf403c3f3a56495d11b","size":2338060,"noattachment":false,"key":"/classic-level/-/classic-level-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/classic-level/download/classic-level-2.0.0.tgz"},"_npmUser":{"name":"vweevers","email":"dev@vincentweevers.nl"},"directories":{},"maintainers":[{"name":"vweevers","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/classic-level_2.0.0_1729469545029_0.4669203407265523"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-10-21T00:12:25.294Z","publish_time":1729469545294,"_source_registry_name":"default","hasInstallScript":true,"_cnpm_publish_time":1729469545294},"1.4.1":{"name":"classic-level","version":"1.4.1","description":"An abstract-level database backed by LevelDB","license":"MIT","main":"index.js","types":"./index.d.ts","scripts":{"install":"node-gyp-build","test":"standard && (nyc -s tape test/*-test.js | faucet) && nyc report","test-gc":"node --expose-gc test/gc.js","test-electron":"electron test/electron.js","test-prebuild":"cross-env PREBUILDS_ONLY=1 npm t","coverage":"nyc report -r lcovonly","rebuild":"npm run install --build-from-source","prebuild":"prebuildify -t 8.14.0 --napi --strip","download-prebuilds":"prebuildify-ci download","hallmark":"hallmark --fix","dependency-check":"dependency-check --no-dev -i napi-macros . test/*.js","prepublishOnly":"npm run dependency-check","prebuild-linux-arm":"prebuildify-cross -i linux-armv6 -i linux-armv7 -i linux-arm64-lts -t 8.14.0 --napi --strip","prebuild-android-arm":"prebuildify-cross -i android-armv7 -i android-arm64 -t 8.14.0 --napi --strip","prebuild-linux-x64":"prebuildify-cross -i centos7-devtoolset7 -i alpine -t 8.14.0 --napi --strip","prebuild-darwin-x64+arm64":"prebuildify -t 8.14.0 --napi --strip --arch x64+arm64","prebuild-win32-x86":"prebuildify -t 8.14.0 --napi --strip","prebuild-win32-x64":"prebuildify -t 8.14.0 --napi --strip"},"dependencies":{"abstract-level":"^1.0.2","catering":"^2.1.0","module-error":"^1.0.1","napi-macros":"^2.2.2","node-gyp-build":"^4.3.0"},"devDependencies":{"@types/node":"^18.0.0","@voxpelli/tsconfig":"^4.0.0","async-each":"^1.0.3","cross-env":"^7.0.3","delayed":"^2.0.0","dependency-check":"^4.1.0","du":"^1.0.0","electron":"^21.0.1","faucet":"^0.0.3","glob":"^8.0.1","hallmark":"^4.1.0","mkfiletree":"^2.0.0","node-gyp":"^9.0.0","nyc":"^15.0.0","prebuildify":"^5.0.0","prebuildify-ci":"^1.0.4","prebuildify-cross":"^5.0.0","readfiletree":"^1.0.0","rimraf":"^3.0.0","standard":"^17.0.0","tape":"^5.5.0","tempy":"^1.0.1","typescript":"^4.5.5"},"gypfile":true,"repository":{"type":"git","url":"git+https://github.com/Level/classic-level.git"},"homepage":"https://github.com/Level/classic-level","keywords":["leveldb","level"],"engines":{"node":">=12"},"_id":"classic-level@1.4.1","gitHead":"a21dfbfef088b159326a090d3585f080fbd0463f","bugs":{"url":"https://github.com/Level/classic-level/issues"},"_nodeVersion":"18.18.0","_npmVersion":"9.8.1","dist":{"shasum":"169ecf9f9c6200ad42a98c8576af449c1badbaee","size":2260537,"noattachment":false,"key":"/classic-level/-/classic-level-1.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/classic-level/download/classic-level-1.4.1.tgz"},"_npmUser":{"name":"vweevers","email":"dev@vincentweevers.nl"},"directories":{},"maintainers":[{"name":"vweevers","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/classic-level_1.4.1_1705768281515_0.28528422475198867"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-01-20T16:31:21.702Z","publish_time":1705768281702,"_source_registry_name":"default","hasInstallScript":true,"_cnpm_publish_time":1705768281702},"1.3.0":{"name":"classic-level","version":"1.3.0","description":"An abstract-level database backed by LevelDB","license":"MIT","main":"index.js","types":"./index.d.ts","scripts":{"install":"node-gyp-build","test":"standard && (nyc -s tape test/*-test.js | faucet) && nyc report","test-gc":"node --expose-gc test/gc.js","test-electron":"electron test/electron.js","test-prebuild":"cross-env PREBUILDS_ONLY=1 npm t","coverage":"nyc report -r lcovonly","rebuild":"npm run install --build-from-source","prebuild":"prebuildify -t 8.14.0 --napi --strip","download-prebuilds":"prebuildify-ci download","hallmark":"hallmark --fix","dependency-check":"dependency-check --no-dev -i napi-macros . test/*.js","prepublishOnly":"npm run dependency-check","prebuild-linux-arm":"prebuildify-cross -i linux-armv6 -i linux-armv7 -i linux-arm64-lts -t 8.14.0 --napi --strip","prebuild-android-arm":"prebuildify-cross -i android-armv7 -i android-arm64 -t 8.14.0 --napi --strip","prebuild-linux-x64":"prebuildify-cross -i centos7-devtoolset7 -i alpine -t 8.14.0 --napi --strip","prebuild-darwin-x64+arm64":"prebuildify -t 8.14.0 --napi --strip --arch x64+arm64","prebuild-win32-x86":"prebuildify -t 8.14.0 --napi --strip","prebuild-win32-x64":"prebuildify -t 8.14.0 --napi --strip"},"dependencies":{"abstract-level":"^1.0.2","catering":"^2.1.0","module-error":"^1.0.1","napi-macros":"^2.2.2","node-gyp-build":"^4.3.0"},"devDependencies":{"@types/node":"^18.0.0","@voxpelli/tsconfig":"^4.0.0","async-each":"^1.0.3","cross-env":"^7.0.3","delayed":"^2.0.0","dependency-check":"^4.1.0","du":"^1.0.0","electron":"^21.0.1","faucet":"^0.0.3","glob":"^8.0.1","hallmark":"^4.1.0","mkfiletree":"^2.0.0","node-gyp":"^9.0.0","nyc":"^15.0.0","prebuildify":"^5.0.0","prebuildify-ci":"^1.0.4","prebuildify-cross":"^5.0.0","readfiletree":"^1.0.0","rimraf":"^3.0.0","standard":"^17.0.0","tape":"^5.5.0","tempy":"^1.0.1","typescript":"^4.5.5"},"gypfile":true,"repository":{"type":"git","url":"git+https://github.com/Level/classic-level.git"},"homepage":"https://github.com/Level/classic-level","keywords":["leveldb","level"],"engines":{"node":">=12"},"gitHead":"e70d4c23b11cfe35f59a285297ed7f6c1b602b28","bugs":{"url":"https://github.com/Level/classic-level/issues"},"_id":"classic-level@1.3.0","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"shasum":"5e36680e01dc6b271775c093f2150844c5edd5c8","size":2233811,"noattachment":false,"key":"/classic-level/-/classic-level-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/classic-level/download/classic-level-1.3.0.tgz"},"_npmUser":{"name":"vweevers","email":"dev@vincentweevers.nl"},"directories":{},"maintainers":[{"name":"vweevers","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/classic-level_1.3.0_1680863871688_0.8275020476269919"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-04-07T10:37:51.898Z","publish_time":1680863871898,"hasInstallScript":true,"_cnpm_publish_time":1680863871898},"1.2.0":{"name":"classic-level","version":"1.2.0","description":"An abstract-level database backed by LevelDB","license":"MIT","main":"index.js","types":"./index.d.ts","scripts":{"install":"node-gyp-build","test":"standard && ts-standard *.ts && (nyc -s tape test/*-test.js | faucet) && nyc report","test-gc":"node --expose-gc test/gc.js","test-electron":"electron test/electron.js","test-prebuild":"cross-env PREBUILDS_ONLY=1 npm t","coverage":"nyc report -r lcovonly","rebuild":"npm run install --build-from-source","prebuild":"prebuildify -t 8.14.0 --napi --strip","download-prebuilds":"prebuildify-ci download","hallmark":"hallmark --fix","dependency-check":"dependency-check --no-dev -i napi-macros . test/*.js","prepublishOnly":"npm run dependency-check","prebuild-linux-arm":"prebuildify-cross -i linux-armv6 -i linux-armv7 -i linux-arm64 -t 8.14.0 --napi --strip","prebuild-android-arm":"prebuildify-cross -i android-armv7 -i android-arm64 -t 8.14.0 --napi --strip","prebuild-linux-x64":"prebuildify-cross -i centos7-devtoolset7 -i alpine -t 8.14.0 --napi --strip","prebuild-darwin-x64+arm64":"prebuildify -t 8.14.0 --napi --strip --arch x64+arm64","prebuild-win32-x86":"prebuildify -t 8.14.0 --napi --strip","prebuild-win32-x64":"prebuildify -t 8.14.0 --napi --strip"},"dependencies":{"abstract-level":"^1.0.2","catering":"^2.1.0","module-error":"^1.0.1","napi-macros":"~2.0.0","node-gyp-build":"^4.3.0"},"devDependencies":{"@types/node":"^17.0.16","@voxpelli/tsconfig":"^3.1.0","async-each":"^1.0.3","cross-env":"^7.0.3","delayed":"^2.0.0","dependency-check":"^4.1.0","du":"^1.0.0","electron":"^17.0.0","faucet":"^0.0.1","glob":"^7.2.0","hallmark":"^4.1.0","mkfiletree":"^2.0.0","node-gyp":"^9.0.0","nyc":"^15.0.0","prebuildify":"^5.0.0","prebuildify-ci":"^1.0.4","prebuildify-cross":"^5.0.0","readfiletree":"^1.0.0","rimraf":"^3.0.0","standard":"^16.0.4","tape":"^5.5.0","tempy":"^1.0.1","ts-standard":"^11.0.0","typescript":"^4.5.5"},"gypfile":true,"repository":{"type":"git","url":"git+https://github.com/Level/classic-level.git"},"homepage":"https://github.com/Level/classic-level","keywords":["leveldb","level"],"engines":{"node":">=12"},"gitHead":"5e2fafb0dad78457742fdb2b85201ec61fc139d8","bugs":{"url":"https://github.com/Level/classic-level/issues"},"_id":"classic-level@1.2.0","_nodeVersion":"16.9.1","_npmVersion":"7.21.1","dist":{"shasum":"2d52bdec8e7a27f534e67fdeb890abef3e643c27","size":2225150,"noattachment":false,"key":"/classic-level/-/classic-level-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/classic-level/download/classic-level-1.2.0.tgz"},"_npmUser":{"name":"vweevers","email":"dev@vincentweevers.nl"},"directories":{},"maintainers":[{"name":"vweevers","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/classic-level_1.2.0_1648207582853_0.026861041457969748"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-03-25T12:25:08.291Z","hasInstallScript":true,"publish_time":1648207583061,"_cnpm_publish_time":1648207583061},"1.1.0":{"name":"classic-level","version":"1.1.0","description":"An abstract-level database backed by LevelDB","license":"MIT","main":"index.js","types":"./index.d.ts","scripts":{"install":"node-gyp-build","test":"standard && ts-standard *.ts && (nyc -s tape test/*-test.js | faucet) && nyc report","test-gc":"node --expose-gc test/gc.js","test-electron":"electron test/electron.js","test-prebuild":"cross-env PREBUILDS_ONLY=1 npm t","coverage":"nyc report -r lcovonly","rebuild":"npm run install --build-from-source","prebuild":"prebuildify -t 8.14.0 --napi --strip","download-prebuilds":"prebuildify-ci download","hallmark":"hallmark --fix","dependency-check":"dependency-check --no-dev -i napi-macros . test/*.js","prepublishOnly":"npm run dependency-check","prebuild-linux-arm":"prebuildify-cross -i linux-armv6 -i linux-armv7 -i linux-arm64 -t 8.14.0 --napi --strip","prebuild-android-arm":"prebuildify-cross -i android-armv7 -i android-arm64 -t 8.14.0 --napi --strip","prebuild-linux-x64":"prebuildify-cross -i centos7-devtoolset7 -i alpine -t 8.14.0 --napi --strip","prebuild-darwin-x64+arm64":"prebuildify -t 8.14.0 --napi --strip --arch x64+arm64","prebuild-win32-x86":"prebuildify -t 8.14.0 --napi --strip","prebuild-win32-x64":"prebuildify -t 8.14.0 --napi --strip"},"dependencies":{"abstract-level":"^1.0.2","catering":"^2.1.0","module-error":"^1.0.1","napi-macros":"~2.0.0","node-gyp-build":"^4.3.0"},"devDependencies":{"@types/node":"^17.0.16","@voxpelli/tsconfig":"^3.1.0","async-each":"^1.0.3","cross-env":"^7.0.3","delayed":"^2.0.0","dependency-check":"^4.1.0","du":"^1.0.0","electron":"^17.0.0","faucet":"^0.0.1","glob":"^7.2.0","hallmark":"^4.1.0","mkfiletree":"^2.0.0","node-gyp":"^9.0.0","nyc":"^15.0.0","prebuildify":"^5.0.0","prebuildify-ci":"^1.0.4","prebuildify-cross":"^5.0.0","readfiletree":"^1.0.0","rimraf":"^3.0.0","standard":"^16.0.4","tape":"^5.5.0","tempy":"^1.0.1","ts-standard":"^11.0.0","typescript":"^4.5.5"},"gypfile":true,"repository":{"type":"git","url":"git+https://github.com/Level/classic-level.git"},"homepage":"https://github.com/Level/classic-level","keywords":["leveldb","level"],"engines":{"node":">=12"},"gitHead":"cf161a59e5458eaadff1066d5761e1baf064a1ae","bugs":{"url":"https://github.com/Level/classic-level/issues"},"_id":"classic-level@1.1.0","_nodeVersion":"16.9.1","_npmVersion":"7.21.1","dist":{"shasum":"56db959804f603214910b9fc65bade838df97dd7","size":2222737,"noattachment":false,"key":"/classic-level/-/classic-level-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/classic-level/download/classic-level-1.1.0.tgz"},"_npmUser":{"name":"vweevers","email":"dev@vincentweevers.nl"},"directories":{},"maintainers":[{"name":"vweevers","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/classic-level_1.1.0_1646579321407_0.03972162560345449"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-03-06T15:08:49.810Z","hasInstallScript":true,"publish_time":1646579321597,"_cnpm_publish_time":1646579321597},"1.0.0":{"name":"classic-level","version":"1.0.0","description":"An abstract-level database backed by LevelDB","license":"MIT","main":"index.js","types":"./index.d.ts","scripts":{"install":"node-gyp-build","test":"standard && ts-standard *.ts && (nyc -s tape test/*-test.js | faucet) && nyc report","test-gc":"node --expose-gc test/gc.js","test-electron":"electron test/electron.js","test-prebuild":"cross-env PREBUILDS_ONLY=1 npm t","coverage":"nyc report -r lcovonly","rebuild":"npm run install --build-from-source","prebuild":"prebuildify -t 8.14.0 --napi --strip","download-prebuilds":"prebuildify-ci download","hallmark":"hallmark --fix","dependency-check":"dependency-check --no-dev -i napi-macros . test/*.js","prepublishOnly":"npm run dependency-check","prebuild-linux-arm":"prebuildify-cross -i linux-armv6 -i linux-armv7 -i linux-arm64 -t 8.14.0 --napi --strip","prebuild-android-arm":"prebuildify-cross -i android-armv7 -i android-arm64 -t 8.14.0 --napi --strip","prebuild-linux-x64":"prebuildify-cross -i centos7-devtoolset7 -i alpine -t 8.14.0 --napi --strip","prebuild-darwin-x64+arm64":"prebuildify -t 8.14.0 --napi --strip --arch x64+arm64","prebuild-win32-x86":"prebuildify -t 8.14.0 --napi --strip","prebuild-win32-x64":"prebuildify -t 8.14.0 --napi --strip"},"dependencies":{"abstract-level":"^1.0.1","catering":"^2.1.0","module-error":"^1.0.1","napi-macros":"~2.0.0","node-gyp-build":"^4.3.0"},"devDependencies":{"@types/node":"^17.0.16","@voxpelli/tsconfig":"^3.1.0","async-each":"^1.0.3","cross-env":"^7.0.3","delayed":"^2.0.0","dependency-check":"^4.1.0","du":"^1.0.0","electron":"^17.0.0","faucet":"^0.0.1","glob":"^7.2.0","hallmark":"^4.1.0","mkfiletree":"^2.0.0","node-gyp":"^9.0.0","nyc":"^15.0.0","prebuildify":"^5.0.0","prebuildify-ci":"^1.0.4","prebuildify-cross":"^5.0.0","readfiletree":"^1.0.0","rimraf":"^3.0.0","standard":"^16.0.4","tape":"^5.5.0","tempy":"^1.0.1","ts-standard":"^11.0.0","typescript":"^4.5.5"},"gypfile":true,"repository":{"type":"git","url":"git+https://github.com/Level/classic-level.git"},"homepage":"https://github.com/Level/classic-level","keywords":["leveldb","level"],"engines":{"node":">=12"},"gitHead":"4110908335a7139f88538f321a4256507406e917","bugs":{"url":"https://github.com/Level/classic-level/issues"},"_id":"classic-level@1.0.0","_nodeVersion":"16.9.1","_npmVersion":"7.21.1","dist":{"shasum":"c1eb31b2721fc4fdceb3a8c8c48c50d23f6493f8","size":2222418,"noattachment":false,"key":"/classic-level/-/classic-level-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/classic-level/download/classic-level-1.0.0.tgz"},"_npmUser":{"name":"vweevers","email":"dev@vincentweevers.nl"},"directories":{},"maintainers":[{"name":"vweevers","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/classic-level_1.0.0_1646407148956_0.46020055284642214"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-03-04T15:21:57.741Z","hasInstallScript":true,"publish_time":1646407149170,"_cnpm_publish_time":1646407149170}},"readme":"# classic-level\n\n**An [`abstract-level`](https://github.com/Level/abstract-level) database backed by [LevelDB](https://github.com/google/leveldb).** The successor to [`leveldown`](https://github.com/Level/leveldown) with builtin encodings, sublevels, events, hooks and support of Uint8Array. If you are upgrading, please see [`UPGRADING.md`](UPGRADING.md).\n\n> :pushpin: What is `abstract-level`? Head on over to [Frequently Asked Questions](https://github.com/Level/community#faq).\n\n[![level badge][level-badge]](https://github.com/Level/awesome)\n[![npm](https://img.shields.io/npm/v/classic-level.svg)](https://www.npmjs.com/package/classic-level)\n[![Node version](https://img.shields.io/node/v/classic-level.svg)](https://www.npmjs.com/package/classic-level)\n[![Test](https://img.shields.io/github/actions/workflow/status/Level/classic-level/test.yml?branch=main\\&label=test)](https://github.com/Level/classic-level/actions/workflows/test.yml)\n[![Coverage](https://img.shields.io/codecov/c/github/Level/classic-level?label=\\&logo=codecov\\&logoColor=fff)](https://codecov.io/gh/Level/classic-level)\n[![Standard](https://img.shields.io/badge/standard-informational?logo=javascript\\&logoColor=fff)](https://standardjs.com)\n[![Common Changelog](https://common-changelog.org/badge.svg)](https://common-changelog.org)\n[![Donate](https://img.shields.io/badge/donate-orange?logo=open-collective\\&logoColor=fff)](https://opencollective.com/level)\n\n## Usage\n\n```js\nconst { ClassicLevel } = require('classic-level')\n\n// Create a database\nconst db = new ClassicLevel('./db', { valueEncoding: 'json' })\n\n// Add an entry with key 'a' and value 1\nawait db.put('a', 1)\n\n// Add multiple entries\nawait db.batch([{ type: 'put', key: 'b', value: 2 }])\n\n// Get value of key 'a': 1\nconst value = await db.get('a')\n\n// Iterate entries with keys that are greater than 'a'\nfor await (const [key, value] of db.iterator({ gt: 'a' })) {\n  console.log(value) // 2\n}\n```\n\nUsage from TypeScript requires generic type parameters.\n\n<details><summary>TypeScript example</summary>\n\n```ts\n// Specify types of keys and values (any, in the case of json).\n// The generic type parameters default to ClassicLevel<string, string>.\nconst db = new ClassicLevel<string, any>('./db', { valueEncoding: 'json' })\n\n// All relevant methods then use those types\nawait db.put('a', { x: 123 })\n\n// Specify different types when overriding encoding per operation\nawait db.get<string, string>('a', { valueEncoding: 'utf8' })\n\n// Though in some cases TypeScript can infer them\nawait db.get('a', { valueEncoding: db.valueEncoding('utf8') })\n\n// It works the same for sublevels\nconst abc = db.sublevel('abc')\nconst xyz = db.sublevel<string, any>('xyz', { valueEncoding: 'json' })\n```\n\n</details>\n\n## Supported Platforms\n\nWe aim to support Active LTS and Current Node.js releases, Electron >= 30, as well as any future Node.js and Electron releases thanks to [Node-API](https://nodejs.org/api/n-api.html).\n\nThe `classic-level` npm package ships with prebuilt binaries for popular 64-bit platforms as well as ARM, M1, Android, Alpine (musl), Windows 32-bit, Linux flavors with an old glibc (2.28) and is known to work on:\n\n- **Linux**, including ARM platforms such as Raspberry Pi and Kindle\n- **Mac OS** (10.7 and later)\n- **Windows**.\n\nWhen installing `classic-level`, [`node-gyp-build`](https://github.com/prebuild/node-gyp-build) will check if a compatible binary exists and fallback to compiling from source if it doesn't. In that case you'll need a [valid `node-gyp` installation](https://github.com/nodejs/node-gyp#installation).\n\nIf you don't want to use the prebuilt binary for the platform you are installing on, specify the `--build-from-source` flag when you install:\n\n```\nnpm install classic-level --build-from-source\n```\n\nIf you are working on `classic-level` itself and want to recompile the C++ code, run `npm run rebuild`.\n\n## API\n\nThe API of `classic-level` follows that of [`abstract-level`](https://github.com/Level/abstract-level#public-api-for-consumers) with a few additional methods and options that are specific to LevelDB. The documentation below only covers the differences.\n\n### `db = new ClassicLevel(location[, options])`\n\nCreate a database or open an existing database. The `location` argument must be a directory path (relative or absolute) where LevelDB will store its files. If the directory does not yet exist (and `options.createIfMissing` is true) it will be created recursively. Options are the same as in `abstract-level` except for the additional options accepted by `db.open()` and thus by this constructor.\n\nA `classic-level` database obtains an exclusive lock. If another process or instance has already opened the underlying LevelDB store at the same `location` then opening will fail with error code [`LEVEL_LOCKED`](https://github.com/Level/abstract-level#errors).\n\n### Opening\n\nThe [`db.open([options])`](https://github.com/Level/abstract-level#dbopenoptions) method has additional options:\n\n- `multithreading` (boolean, default: `false`): allow multiple threads to access the database. This is only relevant when using [worker threads](https://nodejs.org/api/worker_threads.html).\n\nIt also has the following options for advanced performance tuning, only to be modified if you can prove actual benefit for your particular application.\n\n<details>\n<summary>Click to expand</summary>\n\n- `compression` (boolean, default: `true`): Unless set to `false`, all _compressible_ data will be run through the Snappy compression algorithm before being stored. Snappy is very fast so leave this on unless you have good reason to turn it off.\n\n- `cacheSize` (number, default: `8 * 1024 * 1024`): The size (in bytes) of the in-memory [LRU](http://en.wikipedia.org/wiki/Least_Recently_Used) cache with frequently used uncompressed block contents.\n\n- `writeBufferSize` (number, default: `4 * 1024 * 1024`): The maximum size (in bytes) of the log (in memory and stored in the `.log` file on disk). Beyond this size, LevelDB will convert the log data to the first level of sorted table files. From LevelDB documentation:\n\n  > Larger values increase performance, especially during bulk loads. Up to two write buffers may be held in memory at the same time, so you may wish to adjust this parameter to control memory usage. Also, a larger write buffer will result in a longer recovery time the next time the database is opened.\n\n- `blockSize` (number, default: `4096`): The _approximate_ size of the blocks that make up the table files. The size relates to uncompressed data (hence \"approximate\"). Blocks are indexed in the table file and entry-lookups involve reading an entire block and parsing to discover the required entry.\n\n- `maxOpenFiles` (number, default: `1000`): The maximum number of files that LevelDB is allowed to have open at a time. If your database is likely to have a large working set, you may increase this value to prevent file descriptor churn. To calculate the number of files required for your working set, divide your total data size by `maxFileSize`.\n\n- `blockRestartInterval` (number, default: `16`): The number of entries before restarting the \"delta encoding\" of keys within blocks. Each \"restart\" point stores the full key for the entry, between restarts, the common prefix of the keys for those entries is omitted. Restarts are similar to the concept of keyframes in video encoding and are used to minimise the amount of space required to store keys. This is particularly helpful when using deep namespacing / prefixing in your keys.\n\n- `maxFileSize` (number, default: `2 * 1024 * 1024`): The maximum amount of bytes to write to a file before switching to a new one. From LevelDB documentation:\n\n  > If your filesystem is more efficient with larger files, you could consider increasing the value. The downside will be longer compactions and hence longer latency / performance hiccups. Another reason to increase this parameter might be when you are initially populating a large database.\n\n</details>\n\n### Closing\n\nThe [`db.close()`](https://github.com/Level/abstract-level#dbclose) method has an additional behavior: it waits for any pending operations to finish before closing. For example:\n\n```js\n// close() will wait for the put() to finish.\nconst promise1 = db.put('key', 'value')\nconst promise2 = db.close()\n```\n\n### Reading\n\nThe [`db.get(key[, options])`](https://github.com/Level/abstract-level#dbgetkey-options), [`db.getMany(keys[, options])`](https://github.com/Level/abstract-level#dbgetmanykeys-options) and [`db.iterator([options])`](https://github.com/Level/abstract-level#iterator--dbiteratoroptions) methods have an additional option:\n\n- `fillCache` (boolean, default: `true`): unless set to `false`, LevelDB will fill its in-memory [LRU](http://en.wikipedia.org/wiki/Least_Recently_Used) cache with data that was read.\n\nA `classic-level` database supports snapshots (as indicated by [`db.supports.snapshots`](https://github.com/Level/supports#snapshots-boolean)) which means `db.get()`, `db.getMany()` and `db.iterator()` read from a snapshot of the database, created synchronously at the time that `db.get()`, `db.getMany()` or `db.iterator()` was called. This means they will not see the data of simultaneous write operations, commonly referred to as having _snapshot guarantees_.\n\nThe [`db.iterator([options])`](https://github.com/Level/abstract-level#iterator--dbiteratoroptions) method also accepts:\n\n- `highWaterMarkBytes` (number, default: `16 * 1024`): limit the amount of data that the iterator will hold in memory.\n\nWhile [`iterator.nextv(size)`](https://github.com/Level/abstract-level#iteratornextvsize-options) is reading entries from LevelDB into memory, it sums up the byte length of those entries. If and when that sum has exceeded `highWaterMarkBytes`, reading will stop. If `nextv(2)` would normally yield two entries but the first entry is too large, then only one entry will be yielded. More `nextv(size)` calls must then be made to get the remaining entries.\n\nIf memory usage is less of a concern, increasing `highWaterMarkBytes` can increase the throughput of `nextv(size)`. If set to `0` then `nextv(size)` will never yield more than one entry, as `highWaterMarkBytes` will be exceeded on each call. It can not be set to `Infinity`. On key- and value iterators (see below) it applies to the byte length of keys or values respectively, rather than the combined byte length of keys _and_ values.\n\nOptimal performance can be achieved by setting `highWaterMarkBytes` to at least `size` multiplied by the expected byte length of an entry, ensuring that `size` is always met. In other words, that `nextv(size)` will not stop reading before `size` amount of entries have been read into memory. If the iterator is wrapped in a [Node.js stream](https://github.com/Level/read-stream) or [Web Stream](https://github.com/Level/web-stream) then the `size` parameter is dictated by the stream's `highWaterMark` option. For example:\n\n```js\nconst { EntryStream } = require('level-read-stream')\n\n// If an entry is 50 bytes on average\nconst stream = new EntryStream(db, {\n  highWaterMark: 1000,\n  highWaterMarkBytes: 1000 * 50\n})\n```\n\nSide note: the \"watermark\" analogy makes more sense in Node.js streams because its internal `highWaterMark` can grow, indicating the highest that the \"water\" has been. In a `classic-level` iterator however, `highWaterMarkBytes` is fixed once set. Getting exceeded does not change it.\n\nThe `highWaterMarkBytes` option is also applied to an internal cache that `classic-level` employs for [`next()`](https://github.com/Level/abstract-level#iteratornext) and [`for await...of`](https://github.com/Level/abstract-level#for-awaitof-iterator). When `next()` is called, that cache is populated with at most 1000 entries, or less than that if `highWaterMarkBytes` is exceeded by the total byte length of entries. To avoid reading too eagerly, the cache is not populated on the first `next()` call, or the first `next()` call after a `seek()`. Only on subsequent `next()` calls.\n\n### Writing\n\nThe [`db.put(key, value[, options])`](https://github.com/Level/abstract-level#dbputkey-value-options), [`db.del(key[, options])`](https://github.com/Level/abstract-level#dbdelkey-options) and [`db.batch(operations[, options])`](https://github.com/Level/abstract-level#dbbatchoperations-options) and [`chainedBatch.write([options])`](https://github.com/Level/abstract-level#chainedbatchwriteoptions) methods have an additional option:\n\n- `sync` (boolean, default: `false`): if set to `true`, LevelDB will perform a synchronous write of the data although the operation will be asynchronous as far as Node.js or Electron is concerned. Normally, LevelDB passes the data to the operating system for writing and returns immediately. In contrast, a synchronous write will use [`fsync()`](https://man7.org/linux/man-pages/man2/fsync.2.html) or equivalent, so the write will not complete until the data is actually on disk. Synchronous writes are significantly slower than asynchronous writes.\n\n### Additional Methods\n\nThe following methods and properties are not part of the [`abstract-level`](https://github.com/Level/abstract-level) interface.\n\n#### `db.location`\n\nRead-only getter that returns the `location` string that was passed to the constructor (as-is).\n\n#### `db.approximateSize(start, end[, options])`\n\nGet the approximate number of bytes of file system space used by the range `[start..end)`. The result might not include recently written data. The optional `options` object may contain:\n\n- `keyEncoding`: custom key encoding for this operation, used to encode `start` and `end`.\n\nReturns a promise for a number.\n\n#### `db.compactRange(start, end[, options])`\n\nManually trigger a database compaction in the range `[start..end]`. The optional `options` object may contain:\n\n- `keyEncoding`: custom key encoding for this operation, used to encode `start` and `end`.\n\nReturns a promise.\n\n#### `db.getProperty(property)`\n\nGet internal details from LevelDB. When issued with a valid `property` string, a string value is returned synchronously. Valid properties are:\n\n- `leveldb.num-files-at-levelN`: return the number of files at level _N_, where N is an integer representing a valid level (e.g. \"0\").\n- `leveldb.stats`: returns a multi-line string describing statistics about LevelDB's internal operation.\n- `leveldb.sstables`: returns a multi-line string describing all of the _sstables_ that make up contents of the current database.\n\n#### `ClassicLevel.destroy(location)`\n\nCompletely remove an existing LevelDB database directory. You can use this method in place of a full directory removal if you want to be sure to only remove LevelDB-related files. If the directory only contains LevelDB files, the directory itself will be removed as well. If there are additional, non-LevelDB files in the directory, those files and the directory will be left alone.\n\nReturns a promise for the completion of the destroy operation.\n\nBefore calling `destroy()`, close a database if it's using the same `location`:\n\n```js\nconst db = new ClassicLevel('./db')\nawait db.close()\nawait ClassicLevel.destroy('./db')\n```\n\n#### `ClassicLevel.repair(location)`\n\nAttempt a restoration of a damaged database. It can also be used to perform a compaction of the LevelDB log into table files. From LevelDB documentation:\n\n> If a DB cannot be opened, you may attempt to call this method to resurrect as much of the contents of the database as possible. Some data may be lost, so be careful when calling this function on a database that contains important information.\n\nReturns a promise for the completion of the repair operation.\n\nYou will find information on the repair operation in the `LOG` file inside the database directory.\n\nBefore calling `repair()`, close a database if it's using the same `location`.\n\n## Development\n\n### Getting Started\n\nThis repository uses git submodules. Clone it recursively:\n\n```bash\ngit clone --recurse-submodules https://github.com/Level/classic-level.git\n```\n\nAlternatively, initialize submodules inside the working tree:\n\n```bash\ncd classic-level\ngit submodule update --init --recursive\n```\n\n### Contributing\n\n[`Level/classic-level`](https://github.com/Level/classic-level) is an **OPEN Open Source Project**. This means that:\n\n> Individuals making significant and valuable contributions are given commit-access to the project to contribute as they see fit. This project is more like an open wiki than a standard guarded open source project.\n\nSee the [Contribution Guide](https://github.com/Level/community/blob/master/CONTRIBUTING.md) for more details.\n\n### Publishing\n\n1. Increment the version: `npm version ..`\n2. Push to GitHub: `git push --follow-tags`\n3. Wait for CI to complete\n4. Download prebuilds into `./prebuilds`: `npm run download-prebuilds`\n5. Optionally verify loading a prebuild: `npm run test-prebuild`\n6. Optionally verify which files npm will include: `canadian-pub`\n7. Finally: `npm publish`\n\n## Donate\n\nSupport us with a monthly donation on [Open Collective](https://opencollective.com/level) and help us continue our work.\n\n## License\n\n[MIT](LICENSE)\n\n[level-badge]: https://leveljs.org/img/badge.svg\n","_attachments":{},"homepage":"https://github.com/Level/classic-level","bugs":{"url":"https://github.com/Level/classic-level/issues"},"license":"MIT"}