paperdb
v1.0.5
Published
PaperDB is a lightweight, simple, json based data storage system
Downloads
2
Readme
PaperDB
PaperDB is a lightweight JSON based data storage system using a key-value system to store object
Installation
For NPM
npm i paperdb
For Yarn
yarn add paperdb
How to use
const PaperDB = require('paperdb');
let db = new PaperDB('data.json');
db.addCollection('myCollection'); // A collection is like a table
let collection = db.findCollection('myCollection');
collection.add('myKey', { valueA: 'a', value2: 2}); //key and values can be anything
let value = collection.find('myKey');
Hey ! It's broken
Let's me know : https://gitlab.com/ophelien.duparc/PaperDB/issues