@enjine/database
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

@enjine/database

Easy to use Level Database Manager for NodeJS.

Usage

Database Manager

const { Manager } = require('@enjine/database');

const manager = new Manager('.db')

const database = manager.create('database')

await database.post('key', 'Some Data, can be Objetcs, Numbers, String, Arrays')

const data = await database.get('key')

const allData = await database.fetch()

await database.remove('key')

Single Database

const { Database } = require('@enjine/database');

const database = new Database('.db')

await database.post('key', 'Some Data, can be Objetcs, Numbers, String, Arrays')

const data = await database.get('key')

const allData = await database.fetch()

await database.remove('key')

Readme

Keywords

none

Package Sidebar

Install

npm i @enjine/database

Weekly Downloads

1

Version

0.0.3

License

MIT

Unpacked Size

21.1 kB

Total Files

27

Last publish

Collaborators

  • equaliser