Socket
Book a DemoInstallSign in
Socket

easy-db-browser

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

easy-db-browser

Lite&easy database for browsers based on localStorage.

3.0.1
latest
Source
npmnpm
Version published
Weekly downloads
14
-53.33%
Maintainers
1
Weekly downloads
 
Created
Source

Easy DB for browser

Easy DB logo

Lite&easy database for browsers based on localStorage, powered by easy-db-code. Not create any database structure, just use it.

Include types for TypeScript.

API

import easyDB from "easy-db-browser";
const { insert, select, update, remove } = easyDB();

// INSERT
const idOfRow = await insert("collection1", { myRow: 1 });

// SELECT
const allCollection1 = await select("collection1");
const myRow1 = await select("collection1", idOfRow);

// UPDATE
await update("collection1", idOfRow, { ...myRow1, update: 1 });

// REMOVE
await remove("collection1", idOfRow); // only one row

Example of use

import easyDB from "easy-db-browser";
const { select, update } = easyDB();

// Save nickname 
await update("myAppName", "nickname", nickname);

// Load nickname
const nickname = await select("myAppName", "nickname");

Keywords

easy&lite

FAQs

Package last updated on 07 Aug 2025

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.