Skip to content

Commit

Permalink
expose stream methods
Browse files Browse the repository at this point in the history
  • Loading branch information
E.Azer Koçulu committed Feb 25, 2014
1 parent aed7fbc commit e6560d3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Expand Up @@ -38,9 +38,11 @@ A wrapper function with following methods will be returned:
* `del`
* `get`
* `set`
* `batch`
* `createReadStream`
* `createWriteStream`
* `destroy`
* `close`
* `batch`
* `isClosed`
* `isOpen`

Expand Down
4 changes: 4 additions & 0 deletions index.js
Expand Up @@ -97,6 +97,10 @@ function newIO (callback) {
wrapper.del = method(io, 'del');
wrapper.isClosed = method(io, 'isClosed');
wrapper.isOpen = method(io, 'isOpen');
wrapper.createReadStream = method(io, 'createReadStream');
wrapper.createWriteStream = method(io, 'createWriteStream');
wrapper.createKeyStream = method(io, 'createKeyStream');
wrapper.createValueStream = method(io, 'createValueStream');

wrapper.destroy = function (callback) {
if (wrapper.isClosed()) return destroy(dir, callback);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -21,7 +21,7 @@
"author": "Azer Koculu <azer@kodfabrik.com>",
"license": "BSD",
"dependencies": {
"leveldown": "~0.8.0",
"leveldown": "0.10.0",
"local-debug": "0.0.0",
"level-client": "0.0.1"
}
Expand Down

0 comments on commit e6560d3

Please sign in to comment.