# broly-bdfd

> An util package to export a database as an api.

Latest version **0.0.8** (published 2022-09-10) · ISC license · 0 weekly downloads

## Install

```sh
npm install broly-bdfd
pnpm add broly-bdfd
yarn add broly-bdfd
bun add broly-bdfd
```

## 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.8 |
| Published | 2022-09-10 |
| First published | 2022-09-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | broly__ |

## Links

- npm: https://www.npmjs.com/package/broly-bdfd
- npm.io page: https://npm.io/package/broly-bdfd

## Dependencies (2)

- [express](https://npm.io/package/express.md) ^4.18.1
- [quick.db](https://npm.io/package/quick.db.md) ^7.1.3

## Recent versions

- 0.0.8 (latest) — 2022-09-10

## README

# broly-bdfd
-----
### How to start?
```js
const { Database } = require('broly-bdfd');
/* using import 
import { Database } from 'broly-bdfd';
*/

const db = new Database();
db.setPort(8080) /* Choose your port. */
db.init() /* Enable all apis. */
```
-----
#### **Please run the file and follow [this github page to host your repl](https://github.com/DevSpen/24-7_hosting_replit).**
## Endpoints bdscript
##### *The package is made with [express](https://npmjs.com/package/express) and [quick.db](https://npmjs.com/package/quick.db).*
##### *You don't have rate limit. So enjoy.*
-----
*Set the value of a var.*
`GET` /set 
```php
$httpGet[https://<repl_name>.<replit_username>.repl.co/set?key=$message&value=$cropText[$message;$sum[$charCount[$message[1]]];]]

$httpResult[data;key] $c[// the variable name.]
$httpResult[data;old_value] $c[// the old variable value.]
$httpResult[data;new_value] $c[// the new variable value.]
```
-----
*Get data about a var.*
`GET` /get
```php
$httpGet[https://<repl_name>.<replit_username>.repl.co/get?key=$message[1]]

$httpResult[data;key] $c[// the variable name.]
$httpResult[data;value] $c[// the variable value.]
```
-----
*Delete the data of a var.*
`GET` /delete
```php
$httpGet[https://<repl_name>.<replit_username>.repl.co/delete?key=$message[1]]

$httpResult[data;key] $c[// the variable name.]
$httpResult[data;value] $c[// the variable value.]
```
-----
*Delete the data of all vars.*
`GET` /delete/all
```php
$httpGet[https://<repl_name>.<replit_username>.repl.co/delete/all]

$httpResult[data;variables] $c[// the name of all the deleted variables inside an array.]
```
-----
*Get the data of all vars.*
`GET` /get/all
```php
$httpGet[https://<repl_name>.<replit_username>.repl.co/get/all]

$httpResult[data;list] $c[// the name & value of all the existing variable inside an array.]
```
-----
*Create a var with the specified data.*
`GET` /create
```php
$httpGet[https://<repl_name>.<replit_username>.repl.co/create?key=$message[1]&value=$cropText[$message;$sum[$charCount[$message[1]]];]]

$httpResult[data;key] $c[// the variable name.]
$httpResult[data;value] $c[// the variable value.]
```
*Rename a var with the selected name.*
`GET` /rename
```php
$httpGet[https://<repl_name>.<replit_username>.repl.co/rename?key=$message[1]&value=$cropText[$message;$sum[$charCount[$message[1]]];]]

$httpResult[data;old_key] $c[// the old variable name.]
$httpResult[data;new_key] $c[// the new variable name.]
$httpResult[data;value] $c[// the variable value.]
```
-----
## Social media
##### [**discord**](https://discord.gg/zcode)

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