Socket
Book a DemoInstallSign in
Socket

@based/db

Package Overview
Dependencies
Maintainers
9
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@based/db

## Install

npmnpm
Version
0.0.5
Version published
Weekly downloads
270
47.54%
Maintainers
9
Weekly downloads
 
Created
Source

#Based-db

Install

Prerequisites:

  • recent GNU make
  • gcc with recent enough C23 support
  • zig 0.13.0
  • npm & node.js, v20.11.1 or newer
npm i
npm run get-napi // only need this the first time
npm run build

Running tests

Run all tests + ldb + build c, zig and js npm run test

Run specific test file - does substring matching npm run test -- range.js

Run specific test file & run specific test npm run test -- range.js:range

Different flavours of test

Only builds zig npm run test-zig

Builds nothing only runs tests npm run test-fast

Getting started

const db = new BasedDb({
  path: '/persistent-file-path',
})

FAQs

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