paperdb

1.0.5 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i paperdb

Weekly Downloads

1

Version

1.0.5

License

Apache-2.0

Last publish

Collaborators

  • shalien*