Skip to content
This repository was archived by the owner on Jul 4, 2023. It is now read-only.
/ fs-database Public archive

NPM package to creates/find a local folder that stores and creates files for a database.

Notifications You must be signed in to change notification settings

Bug1312/fs-database

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

File System Database

Basic replication of @replit/database but with the use of node's filesystem locally

Get Started

const Database = require('fs-database'),
    db = new Database();

Docs

Database

Database(String directory?)

Gives the option of custom directory for database.

Functions

All these functions are apart of the Database class.

.get(String key)

Gets value of a key, returns promise of the value of the key is.

.set(String key, Any value)

Sets key to value.

.delete(String key)

Deletes key.

.list(String prefix?)

Returns promise with array of all keys in Database with prefix. If no prefix is provided, returns all keys.

About

NPM package to creates/find a local folder that stores and creates files for a database.

Topics

Resources

Stars

Watchers

Forks