1.0.8 • Published 8 months ago

jnbase v1.0.8

Weekly downloads
-
License
ISC
Repository
github
Last release
8 months ago

jbase

Manipulates json files easily for use as lightweight databases.

Installation

npm install jnbase

Usage

const jnbase = require('jnbase');

//creating 'users' key/table
jnbase.create('users')

//adding users
jnbase.data.add('users', {username: 'lullaby6'});
jnbase.data.add('users', {username: 'Elon Musk'});

//adding multiple users
jnbase.data.addMultiple('users', [{username: 'marcos15'}, {username: 'Pedro'}]);

//updating user
jnbase.data.update('users', {username: 'lullaby6'}, {username: 'Lullaby'});

//removing user
jnbase.data.remove('users', {username: 'Elon Musk'});

//get user id
console.log(jnbase.data.get('users', {username: 'Lullaby'})[0].id)
1.0.8

8 months ago

1.0.7

8 months ago

1.0.6

8 months ago

1.0.5

8 months ago

1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago