Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/heapwolf/lev
The complete REPL & CLI for managing LevelDB instances.
https://github.com/heapwolf/lev
cli database leveldb repl
Last synced: 9 days ago
JSON representation
The complete REPL & CLI for managing LevelDB instances.
- Host: GitHub
- URL: https://github.com/heapwolf/lev
- Owner: heapwolf
- License: mit
- Created: 2013-01-01T23:41:36.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2018-05-08T19:41:18.000Z (over 6 years ago)
- Last Synced: 2024-05-03T03:19:58.633Z (6 months ago)
- Topics: cli, database, leveldb, repl
- Language: JavaScript
- Homepage:
- Size: 931 KB
- Stars: 296
- Watchers: 11
- Forks: 36
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-starred - heapwolf/lev - The complete REPL & CLI for managing LevelDB instances. (database)
README
# STATUS
[![development sponsored by voltra.co](https://img.shields.io/badge/Development%20sponsored%20by-Voltra.co-yellow.svg)](https://voltra.co/)
# SYNOPSIS
A simple and convenient commandline tool and REPL for [`leveldb`](http://leveldb.org/).# FEATURES
- REPL with colorized tab-completion and zsh/fish style key suggestions
- REPL automatically saves and reloads REPL history# SCREENSHOT
![screenshot](/docs/screenshot.png)# INSTALLATION
```
$ npm install -g lev
```# BASIC USAGE
```
$ lev path/to/db
```# REPL COMMANDS
Use upper or lower case for the following commands.## GET <key>
Get a key from the database.## PUT <key> <value>
Put a value into the database. If you have `keyEncoding` or `valueEncoding`
set to `json`, these values will be parsed from strings into `json`.## DEL <key>
Delete a key from the database.## LS
Get all the keys in the current range.## START <key-pattern>
Defines the start of the current range. You can also use `GT` or `GTE`.## END <key-pattern>
Defines the end of the current range. You can also use `LT` or `LTE`.## LIMIT <number>
Limit the number of records in the current range (defaults to 5000).## REVERSE
Reverse the records in the current range.# CLI COMMANDS
These all match the parameters used with
[`levelup`](https://github.com/rvagg/node-levelup). The default encoding
for the database is set to `json`.## --start <key-pattern>
Specify the start of the current range. You can also use `gt` or `gte`.## --end <key-pattern>
Specify the end of the current range. You can also use `lt` and `lte`.## --values
Only list the all of the values in the current range.
Emit as a new-line delimited stream of json.## --keys
Only list all of the keys in the current range. Will tabularize the output.## --keyEncoding <string>
Specify the encoding for the keys.## --valueEncoding <string>
Specify the encoding for the values.## --limit <number>
Limit the number of records emitted in the current range.## --reverse
Reverse the stream.