Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dexbee

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dexbee

Simple indexedDB framework

  • 0.1.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
Maintainers
1
Weekly downloads
 
Created
Source

DexBee

DexBee is a simple lightweight indexedDB framework for easy setup and indexing.

Installation

CDN

Add script tag inside <head></head>

<script src="https://cdn.jsdelivr.net/npm/dexbee@latest/dist/dexbee.js"></script>

Webpack

npm i dexbee

And in your javascript:

import DexBee from 'dexbee';

Basic usage

async function main() {
    let data = [{id: 1, name: 'Tom'}, {id: 2, name: 'Jerry'}];

    // Setup database:
    let db = new DexBee({Cartoon: {TomNJerry: {uniqueKey: 'id', index: 'name'}}});

    // Write to database:
    await db.put('Cartoon', 'TomNJerry', data);

    // Get data:
    let jerry = await db.get('Cartoon', 'TomNJerry', {
        where: {name: 'Jerry'}
    });

    console.log(jerry); // logs [ [{ id: 2, name: 'Jerry'}] ]
}

main();

Documentation

Check out Getting Started tutorial from our website dexbee.io

Issues

Post bugs and feature requests Here.
Any Contributions are welcomed :)

License

MIT License.
Copyright (c) 2021-present, broadway Inc.

Keywords

FAQs

Package last updated on 07 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc