2.2.1 • Published 13 days ago

velocedb v2.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
13 days ago

Velocedb

A high-performance, secure, and robust local database

npm version License GitHub issues GitHub stars GitHub forks

Velocedb is a lightweight, fast, and user-friendly local database designed for Node.js and TypeScript applications. It simplifies data management and persistence by storing data in a human-readable JSON format on your local file system.

Features

  • Open Source: Velocedb is open source, which means you have the freedom to modify it according to your preferences.
  • Easy to Use: Velocedb offers a straightforward API for managing data.
  • Customization: Easily configure database settings, such as encoding and JSON formatting, to fit your requirements.
  • Security: Velocedb prioritizes data security to safeguard your information during access and storage.
  • Lightweight: Velocedb is a lightweight and lightning-fast database. It has been optimized to deliver maximum speed and efficiency.

Installation

You can install Velocedb via NPM:

npm install velocedb

Usage

const Veloce = require('velocedb');

// Creating a new database located in the databases folder and called database.json.
const database = new Veloce('databases/database.json');

// Set your data.
database.data = {
    string: 'string',
    boolean: true
};

// Modify your data.
database.data.boolean = false;

// Save your data in the database.json file.
database.save();

// Delete your database.json file.
database.delete();

// Retrieve and check your data.
console.log(database.data);

Configuration

You can customize the database by providing an options object when creating it. Here are the available configuration options:

  • encoding: The encoding option is used for reading or writing the database file (default: 'utf-8').
  • space: The number of spaces for JSON formatting (default: 2).

Example

const Veloce = require('velocedb');

// Creating a database with custom configuration.
const database = new Veloce('database.json', {
    space: 4
});
2.2.1

13 days ago

2.1.1

21 days ago

2.1.0

28 days ago

2.0.6

3 months ago

2.0.5

3 months ago

2.0.0

3 months ago

1.8.5

3 months ago

1.7.5

4 months ago

1.7.2

4 months ago

1.7.1

4 months ago

1.7.0

4 months ago

1.6.0

4 months ago

1.7.4

4 months ago

1.5.5

4 months ago

1.5.7

4 months ago

1.5.6

4 months ago

1.5.2

4 months ago

1.5.1

4 months ago

1.5.0

4 months ago

1.4.6

5 months ago

1.4.5

5 months ago

1.2.5

7 months ago

1.4.1

6 months ago

1.4.0

6 months ago

1.2.1

7 months ago

1.0.6

8 months ago

1.0.5

8 months ago

1.0.4

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago