You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
527 B
36 lines
527 B
# level-write-stream
|
|
|
|
A writeStream implementation for leveldb
|
|
|
|
## Example
|
|
|
|
This implements the writeStream logic for a levelup interface.
|
|
|
|
Just pass it a db with `put` and `batch` method and it will do
|
|
the rest!
|
|
|
|
```js
|
|
var LevelWriteStream = require("level-write-stream")
|
|
|
|
var db = someleveldb()
|
|
|
|
var writeStream = LevelWriteStream(db)
|
|
|
|
var stream = writeStream(options)
|
|
|
|
stream.write({
|
|
key: key
|
|
, value: value
|
|
})
|
|
```
|
|
|
|
## Installation
|
|
|
|
`npm install level-write-stream`
|
|
|
|
## Contributors
|
|
|
|
- Raynos
|
|
|
|
## MIT Licenced
|