Skip to content
This repository was archived by the owner on Dec 1, 2024. It is now read-only.

Commit a0f6ace

Browse files
authored
Tweak README.md and package description (#112)
1 parent 2c2ebc5 commit a0f6ace

File tree

3 files changed

+26
-14
lines changed

3 files changed

+26
-14
lines changed

CONTRIBUTORS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
| :---------------------- | :----------------------------------------------------- | :----------------------------------------------------------------------- |
55
| **Lars-Magnus Skog** | [**@ralphtheninja**](https://github.com/ralphtheninja) | [**@ralph@social.weho.st**](https://social.weho.st/@ralph) |
66
| **Rod Vagg** | [**@rvagg**](https://github.com/rvagg) | [**@rvagg@twitter**](https://twitter.com/rvagg) |
7+
| **Vincent Weevers** | [**@vweevers**](https://github.com/vweevers) | [**@vweevers@twitter**](https://twitter.com/vweevers) |
78
| **David Björklund** | [**@kesla**](https://github.com/kesla) | [**@david_bjorklund@twitter**](https://twitter.com/david_bjorklund) |
89
| **Julian Gruber** | [**@juliangruber**](https://github.com/juliangruber) | [**@juliangruber@twitter**](https://twitter.com/juliangruber) |
910
| **Yichao 'Peak' Ji** | [**@peakji**](https://github.com/peakji) | |
1011
| **Mathias Buus** | [**@mafintosh**](https://github.com/mafintosh) | [**@mafintosh@twitter**](https://twitter.com/mafintosh) |
11-
| **Vincent Weevers** | [**@vweevers**](https://github.com/vweevers) | [**@vweevers@twitter**](https://twitter.com/vweevers) |
1212
| **Matteo Collina** | [**@mcollina**](https://github.com/mcollina) | [**@matteocollina@twitter**](https://twitter.com/matteocollina) |
1313
| **Dominic Tarr** | [**@dominictarr**](https://github.com/dominictarr) | [**@dominictarr@twitter**](https://twitter.com/dominictarr) |
1414
| **Raynos** | | |

README.md

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# rocksdb
22

3-
> A Low-level Node.js RocksDB binding
3+
> A low-level Node.js RocksDB binding. An [`abstract-leveldown`](https://github.com/Level/abstract-leveldown) compliant store.
44
55
[![level badge][level-badge]](https://github.com/Level/awesome)
66
[![npm](https://img.shields.io/npm/v/rocksdb.svg?label=&logo=npm)](https://www.npmjs.com/package/rocksdb)
@@ -13,18 +13,32 @@
1313
[![Backers on Open Collective](https://opencollective.com/level/backers/badge.svg?color=orange)](#backers)
1414
[![Sponsors on Open Collective](https://opencollective.com/level/sponsors/badge.svg?color=orange)](#sponsors)
1515

16-
**If you are upgrading:** please see [UPGRADING.md](UPGRADING.md).
16+
## Table of Contents
17+
18+
<details><summary>Click to expand</summary>
19+
20+
- [Introduction](#introduction)
21+
- [Supported Platforms](#supported-platforms)
22+
- [API](#api)
23+
- [Contributing](#contributing)
24+
- [Donate](#donate)
25+
- [License](#license)
26+
27+
</details>
1728

18-
`rocksdb` is based on the [LevelDown](https://github.com/Level/leveldown) code, which was extracted from [LevelUP](https://github.com/Level/levelup) and now serves as a stand-alone binding for LevelDB. The native code in `rocksdb` is based on [Facebooks fork of LevelDB](https://github.com/facebook/rocksdb).
29+
## Introduction
1930

20-
It is **strongly recommended** that you use LevelUP in preference to `rocksdb` unless you have measurable performance reasons to do so. LevelUP is optimised for usability and safety. Although we are working to improve the safety of the `rocksdb` interface it is still easy to crash your Node process if you don't do things in just the right way.
31+
This module closely follows [`leveldown`](https://github.com/Level/leveldown) and implements the same API. The difference is that `leveldown` is a binding for [LevelDB](https://github.com/google/leveldb) while `rocksdb` is a binding for [RocksDB, Facebook's fork of LevelDB](https://github.com/facebook/rocksdb).
32+
33+
It is **strongly recommended** that you use `levelup` in preference to `rocksdb` unless you have measurable performance reasons to do so. `levelup` is optimized for usability and safety. Although we are working to improve the safety of the `rocksdb` interface it is still easy to crash your Node process if you don't do things in just the right way.
34+
35+
**If you are upgrading:** please see [UPGRADING.md](UPGRADING.md).
2136

22-
<a name="platforms"></a>
2337
## Supported Platforms
2438

2539
We aim to support _at least_ Active LTS and Current Node.js releases, Electron 4.0.0, as well as any future Node.js and Electron releases thanks to [N-API](https://nodejs.org/api/n-api.html). Because N-API has an experimental status in node 6 and early 8.x releases, the minimum node version for `rocksdb` is `8.6.0`.
2640

27-
The `rocksdb` npm package ships with prebuilt binaries for popular 64-bit platforms ~~as well as ARM, Android and Alpine (musl)~~ and is known to work on:
41+
The `rocksdb` npm package ships with prebuilt binaries for popular 64-bit platforms and is known to work on:
2842

2943
- **Linux** (including ARM platforms such as Raspberry Pi and Kindle)
3044
- **Mac OS**
@@ -36,10 +50,11 @@ When installing `rocksdb`, [`node-gyp-build`](https://github.com/prebuild/node-g
3650

3751
If 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. If you are working on `rocksdb` itself and want to re-compile the C++ code it's enough to do `npm install`.
3852

39-
<a name="api"></a>
4053
## API
4154

42-
`rocksdb` implements the same API of [LevelDown](https://github.com/Level/leveldown#api).
55+
Please refer to [`leveldown`](https://github.com/Level/leveldown#api) for API documentation. The `db.open(options, callback)` method of `rocksdb` has a few additional options:
56+
57+
- `readOnly` (boolean, default `false`): open database in read-only mode.
4358

4459
## Contributing
4560

package.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "rocksdb",
33
"version": "3.1.0",
4-
"description": "A Node.js RocksDB binding, a backend for LevelUP",
4+
"description": "A low-level Node.js RocksDB binding",
55
"license": "MIT",
66
"main": "leveldown.js",
77
"scripts": {
@@ -53,10 +53,7 @@
5353
]
5454
},
5555
"hallmark": {
56-
"community": "level-community",
57-
"ignore": [
58-
"README.md"
59-
]
56+
"community": "level-community"
6057
},
6158
"gypfile": true,
6259
"repository": {

0 commit comments

Comments
 (0)