2.73.30 • Published 7 months ago

node-ejdb-lite v2.73.30

Weekly downloads
55
License
MIT
Repository
github
Last release
7 months ago

EJDB2 Node.js native binding

Embeddable JSON Database engine http://ejdb.org Node.js binding.

See https://github.com/Softmotions/ejdb/blob/master/README.md

This project automatically builds the c to node bindings in GitHub actions, then stores them in the Github releases.

This means you can install ejdb on an Linux, Alpine or macOS machine, without the need for c, gcc, make or any other build tools.

For full information on ejdb2, please visit the official project repository.

Differences from official library

The official EJDB2 library for nodejs is fantastic, but this library has a few differences:

  • No build from source required (binaries precompiled and stored in github releases)
  • Therefore, no cmake, make or g++ required to install
  • Fallback to build from source when no compatible prebuilt binary found
  • Removed all typescript and yarn usages
  • Fixes a bug with unicode characters in JSON

Example usage

import { EJDB2 } from 'node-ejdb-lite';

async function run() {
  const db = await EJDB2.open('example.db', { truncate: true });

  let id = await db.put('parrots', { name: 'Bianca', age: 4 });
  console.log(`Bianca record: ${id}`);

  id = await db.put('parrots', { name: 'Darko', age: 8 });
  console.log(`Darko record: ${id}`);

  const q = db.createQuery('/[age > :age]', 'parrots');

  for await (const doc of q.setNumber('age', 3).stream()) {
    console.log(`Found ${doc}`);
  }

  await db.close();
}

run();

Supported platforms

  • Linux x64
  • Linux aarch64
  • Alpine Linux
  • OSX
2.73.30

7 months ago

2.73.27

7 months ago

2.73.28

7 months ago

2.73.29

7 months ago

2.73.26

8 months ago

2.73.24

1 year ago

2.73.25

1 year ago

2.73.22

1 year ago

2.73.23

1 year ago

2.73.20

1 year ago

2.73.21

1 year ago

2.73.19

1 year ago

2.73.18

1 year ago

2.73.15

2 years ago

2.73.16

2 years ago

2.73.13

2 years ago

2.73.17

2 years ago

2.73.11

2 years ago

2.73.12

2 years ago

2.73.10

2 years ago

2.73.1

2 years ago

2.73.0

2 years ago

2.73.5

2 years ago

2.73.9

2 years ago

2.73.8

2 years ago

2.73.7

2 years ago

2.73.6

2 years ago

3.4.5

3 years ago

3.4.4

3 years ago

3.4.3

3 years ago

3.3.7

3 years ago

3.4.0

3 years ago

3.3.5

3 years ago

3.4.2

3 years ago

3.4.1

3 years ago

3.3.3

3 years ago

3.3.1

3 years ago

3.3.0

3 years ago

3.3.2

3 years ago

3.2.6

3 years ago

3.2.5

3 years ago

3.2.2

3 years ago

3.2.3

3 years ago

3.2.1

3 years ago

3.2.0

3 years ago

3.1.3

3 years ago

3.1.2

3 years ago

3.1.1

3 years ago

3.1.0

3 years ago

3.1.7

3 years ago

3.1.6

3 years ago

3.1.5

3 years ago

3.1.4

3 years ago

3.0.6

3 years ago

3.0.5

3 years ago

3.0.4

3 years ago

3.0.3

3 years ago

3.0.2

3 years ago

3.0.1

3 years ago

3.0.0

3 years ago

1.0.44

3 years ago