# @synthexia/bdfd-external

> A package that allows you to work with BDFD externally

Latest version **4.0.1** (published 2024-01-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @synthexia/bdfd-external
pnpm add @synthexia/bdfd-external
yarn add @synthexia/bdfd-external
bun add @synthexia/bdfd-external
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.0.1 |
| Published | 2024-01-24 |
| First published | 2023-08-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 40.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Kitomanari |
| Maintainers | musical, nightnutsky |
| Keywords | bdfd, external, bdfd-external, bdfdexternal |

## Links

- npm: https://www.npmjs.com/package/@synthexia/bdfd-external
- Repository: https://github.com/Synthexia/bdfd-external
- Homepage: https://github.com/Synthexia/bdfd-external#readme
- Issues: https://github.com/Synthexia/bdfd-external/issues
- npm.io page: https://npm.io/package/@synthexia/bdfd-external

## Dependencies (2)

- [jsdom](https://npm.io/package/jsdom.md) 24.0.0
- [centra](https://npm.io/package/centra.md) 2.6.0

## Recent versions

- 4.0.1 (latest) — 2024-01-24
- 4.0.0 — 2024-01-21
- 3.1.1 — 2023-09-24
- 3.1.0 — 2023-09-23
- 3.0.0 — 2023-09-19
- 2.0.0 — 2023-08-14

## README

# Introduction Note

The package was mainly created for better implementation of the Sync feature in our [VS Code Extension](https://marketplace.visualstudio.com/items?itemName=Synthexia.bdfd-extension).

## BDFD External

BDFD External is a package for web scrapping BDFD Web App and make requests to it.
Get your bot list and Get, Update, Create & Delete commands and variables externally!

```sh
npm i @synthexia/bdfd-external | pnpm add @synthexia/bdfd-external
```

## Code Example
```ts
import { type BDFDExternalRequestError, Command } from "@synthexia/bdfd-external";

Command.get(authToken, botId, commandId)
    .then((command) => {
        const { name, trigger, code, language } = command;

        console.log(`The "${name}" command's trigger is "${trigger}"`);
        console.log(`Its scripting language is ${language.name}`);
        console.log('Its code:\n', code);
    })
    .catch((e: BDFDExternalRequestError) => {
        console.error(e.statusCode, e.message);
    });
```

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