Skip to content

Commit 31317a6

Browse files
committed
Update supported platforms section in README
1 parent d001b2c commit 31317a6

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

Diff for: README.md

+9-4
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,18 @@ db.put('name', 'Level', function (err) {
6464
})
6565
```
6666

67-
## Supported Platforms
67+
With `async/await`:
6868

69-
At the time of writing, `level` works in Node.js 8+ and Electron 3+ on Linux, Mac OS, Windows and FreeBSD, including any future Node.js and Electron release thanks to [N-API](https://nodejs.org/api/n-api.html), including ARM platforms like Raspberry Pi and Android, as well as in Chrome, Firefox, IE 11, Edge, Safari, iPhone and Chrome for Android. For details, see [Supported Platforms](https://github.com/Level/leveldown#supported-platforms) of `leveldown` and [Browser Support](https://github.com/Level/level-js#browser-support) of `level-js`.
69+
```js
70+
await db.put('name', 'Level')
71+
const value = await db.get('name')
72+
```
73+
74+
## Supported Platforms
7075

71-
Binary values are supported across the board; in browsers that support [IndexedDB Second Edition](https://www.w3.org/TR/IndexedDB-2/) (like Chrome and Firefox) you can also use binary keys.
76+
At the time of writing, `level` works in Node.js 10+ and Electron 5+ on Linux, Mac OS, Windows and FreeBSD, including any future Node.js and Electron release thanks to [N-API](https://nodejs.org/api/n-api.html), including ARM platforms like Raspberry Pi and Android, as well as in Chrome, Firefox, Edge, Safari, iOS Safari and Chrome for Android. For details, see [Supported Platforms](https://github.com/Level/leveldown#supported-platforms) of `leveldown` and [Browser Support](https://github.com/Level/level-js#browser-support) of `level-js`.
7277

73-
If you want to use [Promises](#promise-support), you will need a polyfill like [`pinkie`](https://github.com/floatdrop/pinkie) in older browsers like IE.
78+
Binary keys and values are supported across the board.
7479

7580
## API
7681

0 commit comments

Comments
 (0)