Name: level-hyper
Owner: Node.js LevelDB
Description: Fast & simple storage - a Node.js-style LevelDB wrapper (a convenience package bundling LevelUP & LevelDOWN) [HyperDex fork]
Created: 2013-10-09 08:26:17.0
Updated: 2017-06-18 00:47:07.0
Pushed: 2017-12-13 10:08:56.0
Homepage: null
Size: 27
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Fast & simple storage - a Node.js-style HyperLevelDB wrapper
This is a convenience package that bundles the current release of LevelUP and LevelDOWN-Hyper and exposes LevelUP on its export.
Use this package to avoid having to explicitly install LevelDOWN-Hyper when you want to use LevelDOWN-Hyper with LevelUP.
Basic usage for putting and getting data:
level = require('level-hyper')
) Create our database, supply location and options.
This will create or open the underlying LevelDB store.
db = level('./mydb')
) put a key & value
ut('name', 'Level', function (err) {
(err) return console.log('Ooops!', err) // some kind of I/O error
3) fetch by key
.get('name', function (err, value) {
if (err) return console.log('Ooops!', err) // likely the key was not found
// ta da!
console.log('name=' + value)
The .liveBackup()
method is accessible on the underlying LevelDOWN-Hyper
object:
level = require('level-hyper')
db = level('./mydb')
n('ready', function () {
r name = String(Date.now())
.db.liveBackup(name, function (err) {
if (!err) console.log('backup to %s was successful', name)
See LevelUP and LevelDOWN-Hyper for more details.
level-hyper is an OPEN Open Source Project. This means that:
Individuals making significant and valuable contributions are given commit-access to the project to contribute as they see fit. This project is more like an open wiki than a standard guarded open source project.
See the contribution guide for more details.
Copyright (c) 2012-2017 level-hyper contributors.
level-hyper is licensed under the MIT license. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE.md file for more details.