@fanny-pack/node
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-beta.1 • Public • Published

Fanny Pack Node.js

Fanny Pack running on Node.js, backed by leveldown.

Installation

npm install --save @fanny-pack/node

Usage

const FannyPack = require('@fanny-pack/node')

const fp = new FannyPack('./important-data')

You can now use fp as any other Fanny Pack.

API

new FannyPack(location: string)

Create or open an existing database at the provided location. The data will be stored using leveldown.

.close(): Promise<void>

Close the underlying LevelDB database.

The rest of the API follows the shared Fanny Pack API.

Readme

Keywords

none

Package Sidebar

Install

npm i @fanny-pack/node

Weekly Downloads

6

Version

1.0.0-beta.1

License

MIT

Unpacked Size

8.13 kB

Total Files

4

Last publish

Collaborators

  • albinekb
  • linusu