# atom-base

> lightweight, lightweight simple database, suitable for small projects, it is also worth considering the simplicity of the syntax and other factors.

Latest version **0.0.2** (published 2023-05-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install atom-base
pnpm add atom-base
yarn add atom-base
bun add atom-base
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2023-05-02 |
| First published | 2023-05-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | crazeCøde |
| Maintainers | crazemastercode |
| Keywords | db, easy-db, database, databse-json, json-db, sql |

## Links

- npm: https://www.npmjs.com/package/atom-base
- npm.io page: https://npm.io/package/atom-base

## Alternatives

- [angular-pipes](https://npm.io/package/angular-pipes.md) — 5.6K weekly downloads
- [@ng-web-apis/midi](https://npm.io/package/@ng-web-apis/midi.md) — 2.6K weekly downloads
- [happn-3](https://npm.io/package/happn-3.md) — 1.6K weekly downloads
- [@opensip-cli/lang-go](https://npm.io/package/@opensip-cli/lang-go.md) — 1.2K weekly downloads
- [@temporal-architect/claude-plugin](https://npm.io/package/@temporal-architect/claude-plugin.md) — 335 weekly downloads

## Recent versions

- 0.0.2 (latest) — 2023-05-02
- 0.0.1 — 2023-05-02

## README

# ENG (**Русский в низу**)

> `npm install atom.base`
* Simple use case

```
const db = new AtomBase({
  path: 'data',
  table: ['main', 'users'],
  exit: '.json'
});
const userID = 129292930;
db.set('main', `${userID}coin`, 200);
const val = db.get('main', `${userID}coin`);
console.log(val); // 200
db.delete('main', `${userID}coin`);
const deletedVal = db.get('main', `${userID}coin`);
console.log(deletedVal); // undefined
```

# Methods

- `delete()` Remove the value of a variable.
```js
db.delete("main", "masterCøde")
```
- `set()` Adds, updates the values of a variable.
```js
db.set("main", "master", "Cøde")
```
- `get()` Returns a variable from a table.
```js
db.get("main", "crazeCøde")
```
# Русский

# Установка
> `npm i atom.base`

```js
const db = new AtomBase({
  path: 'data',
  table: ['main', 'users'],
  exit: '.json'
});

const userID = 129292930;
db.set('main', `${userID}coin`, 200);

const val = db.get('main', `${userID}coin`);
console.log(val); // 200

db.delete('main', `${userID}coin`);

const deletedVal = db.get('main', `${userID}coin`);
console.log(deletedVal); // undefined
```

# Методы
- `delete()` Удаляет переменную из таблицы.
```js
db.delete("main", "master")
```

- `set()` Добавляет  переменную в Таблицу.
```js
db.set("main", "master", "Cøde");
```

- `get()` Получает информацию о переменной из Таблице.
```js
db.get("main", "master")
```

---
_Source: https://npm.io/package/atom-base · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
