# whisky.db

> Json tabanlı database.

Latest version **0.1.6** (published 2024-11-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install whisky.db
pnpm add whisky.db
yarn add whisky.db
bun add whisky.db
```

## Health

**Score 25/100 (F)** — status: maintenance-mode.

Positive: no vulnerabilities.

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

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.6 |
| Published | 2024-11-08 |
| First published | 2022-09-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 8.3 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | whiskyd3v |
| Maintainers | whiskyd3v |
| Keywords | quick.db, json, discord.js, db, database |

## Links

- npm: https://www.npmjs.com/package/whisky.db
- npm.io page: https://npm.io/package/whisky.db

## Dependencies (6)

- [fs](https://npm.io/package/fs.md) ^0.0.1-security
- [path](https://npm.io/package/path.md) ^0.12.7
- [events](https://npm.io/package/events.md) ^3.3.0
- [lodash](https://npm.io/package/lodash.md) ^4.17.21
- [node-fetch](https://npm.io/package/node-fetch.md) ^3.2.6
- [@types/node](https://npm.io/package/@types/node.md) ^18.0.6

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 0.1.6 (latest) — 2024-11-08
- 0.1.5 — 2023-11-18
- 0.1.4 — 2022-10-06
- 0.1.3 — 2022-09-15
- 0.1.2 — 2022-09-14

## README

# İlk önce modülü indiriyoruz.
```bash
npm i whisky.db
```

## Modülü tanımlıyoruz.
```js
const dbModule = require("whisky.db")
const db = new dbModule.createDatabase()
//Sizin için bir JSON dosyası'da açar.
```

# Kullanımlar / Usages
```js
const dbModule = require("whisky.db")
const db = new dbModule.createDatabase()

db.set("developer", "whisky") // { "developer": "whisky" }

db.get("developer") // whisky

db.has("developer") // true

db.push("test_array", "Test") // { "test_array": [ "Test" ] }

db.add("numbers", 1) // { "numbers": 1 }
db.add("numbers", 28) // { "numbers": 29 }

db.substract("numbers", 17) // { "numbers": 12 }

db.delete("numbers") // Veri silindi. - Data deleted.

db.all() // [ { ID: "developer", data: "whisky" }, { ID: "test_array", data: [ "Test" ] } ]

db.deleteAll("CONFIRM") // Tüm veriyi silmek için CONFIRM yazmalısınız. - You must type CONFIRM to delete all data.
```

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