New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@immutabl3/electron-db

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@immutabl3/electron-db

json database for electron

latest
npmnpm
Version
1.0.1
Version published
Weekly downloads
4
300%
Maintainers
1
Weekly downloads
 
Created
Source

electron-db

a simple in-memory, json-persisted database for electron

Based on electron-db, with a couple notable changes

  • implements a promise-based API (instead of callbacks). this allows waiting for an operation to finish writing to the filesystem so that it's safe to exit your program
  • holds data in-memory and saves to filesytem to prevent filesystem thrashing. this also drastically increases performance (while increasing memory usage)
  • locks the database save location to appdata. this simplifies the API
  • favors empty returns and early exits to throw less errors
  • uses modern js <3

Available methods:

insert(table, data)

get(table, key)

all(table)

query(table, query)

update(table, query, data)

search(table, columnOrKey, value)

delete(table, query)

count(table)

FAQs

Package last updated on 19 Nov 2021

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