Universal abstract-level database for Node.js and browsers. Universal abstract-level database for Node.js and browsers. This is a convenience package that exports classic-level in Node.js and browser-level in browsers, making it an ideal entry point to start creating lexicographically sorted key-value databases. All asynchronous methods also support callbacks. TypeScript type declarations are included and cover the methods that are common between classic-level and browser-level. Usage from TypeScript requires generic type parameters. At the time of writing, level works in Node.js 12+ and Electron 5+ on Linux, Mac OS, Windows and FreeBSD, including any future Node.js and Electron release thanks to Node-API, including ARM platforms like Raspberry Pi and Android, as well as in Chrome, Firefox, Edge, Safari, iOS Safari and Chrome for Android.
Features
- Create a new database or open an existing database
- Read-only getter that returns a string reflecting the current state of the database
- The API of level follows that of abstract-level
- At the time of writing, level works in Node.js 12+ and Electron 5+
- Works on Linux, Mac OS, Windows and FreeBSD
- Binary keys and values are supported across the board