You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

super-bionic

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

super-bionic

An in-memory cache that saves to JSON and can be used as a database

1.1.3
latest
Source
npmnpm
Version published
Weekly downloads
44
22.22%
Maintainers
1
Weekly downloads
 
Created
Source

Bionic

Get Started

Usage

const db = new Bionic('data');
// see tmp/data.json for db

db.create('tableName', { name: 'first row of data' });
db.create('tableName', { name: 'second row of data' });


db.find('tableName', { name: 'first row of data' });
// > [{ name: 'first row of data', id: 1 }]

db.find('tableName', {});
// > [{ name: 'first row of data', id: 1 }, { name: 'second row of data', id: 2 }]

db.update('tableName', { id: 2 }, { description: 'this was updated' });

db.remove('tableName', { id: 1 });
// > [{ name: 'second row of data', description: 'this was updated', id: 2 }]


Keywords

json

FAQs

Package last updated on 15 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts