Socket
Socket
Sign inDemoInstall

velocedb

Package Overview
Dependencies
0
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    velocedb

A high-performance, secure, and robust local database


Version published
Maintainers
1
Created

Readme

Source

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
});

Keywords

FAQs

Last updated on 28 Apr 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc