Socket
Socket
Sign inDemoInstall

deferred-leveldown

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deferred-leveldown - npm Package Compare versions

Comparing version 0.0.0 to 0.0.1

test.js

6

package.json
{
"name" : "deferred-leveldown"
, "description" : "For handling delayed-open on LevelDOWN compatible libraries"
, "version" : "0.0.0"
, "version" : "0.0.1"
, "contributors" : [

@@ -24,3 +24,3 @@ "Rod Vagg <r@va.gg> (https://github.com/rvagg)"

}
, "homepage" : "https://github.com/rvagg/deferred-leveldown"
, "homepage" : "https://github.com/Level/deferred-leveldown"
, "keywords": [

@@ -41,5 +41,5 @@ "leveldb"

, "scripts" : {
"test" : "tap test/*-test.js --stderr"
"test" : "node test.js"
}
, "license" : "MIT"
}

@@ -8,6 +8,14 @@ DeferredLevelDOWN

[![Build Status](https://secure.travis-ci.org/rvagg/deferred-leveldown.png)](http://travis-ci.org/rvagg/deferred-leveldown)
[![Build Status](https://secure.travis-ci.org/Level/deferred-leveldown.png)](http://travis-ci.org/rvagg/deferred-leveldown)
[![NPM](https://nodei.co/npm/deferred-leveldown.png?stars&downloads)](https://nodei.co/npm/deferred-leveldown/) [![NPM](https://nodei.co/npm-dl/deferred-leveldown.png)](https://nodei.co/npm/deferred-leveldown/)
[![NPM](https://nodei.co/npm/deferred-leveldown.png?compact)](https://nodei.co/npm/deferred-leveldown/)
**DeferredLevelDOWN** implements the basic [AbstractLevelDOWN](https://github.com/rvagg/node-abstract-leveldown) API so it can be used as a drop-in replacement where LevelDOWN is needed.
`put()`, `get()`, `del()` and `batch()` operations are all queued and kept in memory until a new LevelDOWN-compatible object can be supplied.
The `setDb(db)` method is used to supply a new LevelDOWN object. Once received, all queued operations are replayed against that object, in order.
`batch()` operations will all be replayed as the array form. Chained-batch operations are converted before being stored.
Contributing

@@ -48,2 +56,2 @@ ------------

DeferredLevelDOWN is licensed under an MIT +no-false-attribs license. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE file for more details.
DeferredLevelDOWN is licensed under an MIT +no-false-attribs license. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE file for more details.

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc