API Reference
Level
Fast, lightweight LevelDB binding for Node.js with a promise-based put, get, iterator, and batch API.
Official Documentation ↗CompatibilityThis documentation covers version
v10.0.0. Check the official docs for the latest API surface.Installation
npm
npm install levelMethods
No methods match this filter.
Level exposes an embedded sorted key-value store with promises and an abstract-level backend.
Key Features
- Promise-based get, put, del, and batch
- Range queries through key iterators
- Pluggable backends via abstract-level
Usage Notes
Pin a version and check the official docs for the API surface you depend on before upgrading.
FAQ
- Is Level a database server?
- No. Level is embedded in your process and writes to a local directory, so there is no network hop and no separate service to run.
- How do I query by value?
- Level stores sorted keys only, so value queries require iterating or maintaining a secondary index keyed by the value.
- What happens on a missing key?
- db.get rejects with the code LEVEL_NOT_FOUND. Catch it or check with db.has before reading.
Report a problem with this API docOpens a pre-filled issue on GitHub.