Skip to content

Super simple and light weight JSON file database

License

Notifications You must be signed in to change notification settings

Maistho/file-database

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

file-database

Installation

yarn add file-database

Usage

const path = require('path')
const { FileDatabase } = require('file-database')

const db = new FileDatabase(path.join(__dirname, 'my_db_folder'))
const users = await db.get('users', { depth: Infinity })

License

MIT