Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/haraldf/ldbdump
Small utility to dump contents of a leveldb
https://github.com/haraldf/ldbdump
Last synced: 9 days ago
JSON representation
Small utility to dump contents of a leveldb
- Host: GitHub
- URL: https://github.com/haraldf/ldbdump
- Owner: haraldF
- License: bsd-3-clause
- Created: 2020-05-08T17:47:47.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-04-22T17:37:36.000Z (7 months ago)
- Last Synced: 2024-10-30T01:09:27.994Z (17 days ago)
- Language: C++
- Size: 16.6 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ldbdump
![CI](https://github.com/haraldF/ldbdump/workflows/emscripten%20CI/badge.svg)
Simple node.js package to dump a [LevelDB](https://github.com/google/leveldb) database.
Uses `emscripten` to build the C++ code so it'll work everywhere.
No custom compilation on installation required.## Usage
```
Usage: ldbdump [key]
A tool to introspect a leveldb databasedirectory of the cache
[key] optional - dumps the value for the given key to stdout
```Pass the path to the database directory as first argument to see all keys.
Pass a key as second parameter to dump the value for the given key.## Building
In order to build this project, install [emscripten](https://emscripten.org/docs/getting_started/downloads.html) and [CMake](https://cmake.org/). Make sure to set up emscripten correctly and activate it.
Then, run the following commands to build the C++ parts:
```sh
emcmake cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build
```In order to create your own npm package, run the following command:
```sh
npm pack
```