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

chabrador

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chabrador

A key-incrementer database stored in memory.

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
0
Created
Source

Chabrador

Stella


Chabrador is a key-incrementer database with persistent memory across process resets.

Features

  • In-Memory Data Handling – Memory persists when process resets.
  • Overflow Protection – Limits can be applied to stop theoretical endless growth.

Installation

npm install chabrador

Usage

import { adopt } from 'chabrador';

const chabrador = await adopt({
    filePath: 'data.json',
    backupInterval: 600000, // 10 minutes
    maxEntries: 100000,
    logger: console,
});

chabrador.boop('unique-id');

API

boop(id: string)

Increments a key value by 1 If the key exists otherwise it creates a new entry set at 0. The timestamp of the last boop is recorded.

adopt()

Creates a new Chabrador instance and initializes memory from a file.

Development Homepage:

https://github.com/alexstevovich/chabrador

This link might become chabrador-node in the future if conflicts arise.

License

Licensed under the Apache License 2.0.

Keywords

logging

FAQs

Package last updated on 12 Mar 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