# @node-discord/core

> More than just a Discord API Wrapper

Latest version **1.0.0-alpha.9** (published 2020-08-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @node-discord/core
pnpm add @node-discord/core
yarn add @node-discord/core
bun add @node-discord/core
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0-alpha.9 |
| Published | 2020-08-24 |
| First published | 2020-08-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=10.0.0 |
| Dependencies | 5 |
| Unpacked size | 625.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Alon Livne |
| Maintainers | alonlivne |
| Keywords | Discord, Bot, Discord API, Discord Wrapper |

## Links

- npm: https://www.npmjs.com/package/@node-discord/core
- Repository: https://github.com/Alon-L/node-discord
- Homepage: https://github.com/Alon-L/node-discord#readme
- Issues: https://github.com/Alon-L/node-discord/issues
- npm.io page: https://npm.io/package/@node-discord/core

## Dependencies (5)

- [ws](https://npm.io/package/ws.md) ^7.3.1
- [form-data](https://npm.io/package/form-data.md) ^3.0.0
- [mime-types](https://npm.io/package/mime-types.md) ^2.1.27
- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.0
- [typed-emitter](https://npm.io/package/typed-emitter.md) ^1.3.0

## Recent versions

- 1.0.0-alpha.9 (latest) — 2020-08-24
- 1.0.0-alpha.7 (alpha) — 2020-08-22
- 1.0.0-alpha.8 — 2020-08-22
- 1.0.0-alpha.6 — 2020-08-22
- 1.0.0-alpha.5 — 2020-08-22
- 1.0.0-alpha.4 — 2020-08-22
- 1.0.0-alpha.3 — 2020-08-21
- 1.0.0-alpha.2 — 2020-08-21
- 1.0.0-alpha.1 — 2020-08-21
- 1.0.0-alpha.0 — 2020-08-21

## README

[![node-discord](https://raw.githubusercontent.com/Alon-L/node-discord/gh-pages/assets/images/header.png)](#)

<p align="center">
  More than just a Discord API Wrapper.
</p>

<p align="center">
  <a href="https://discord.gg/TF7BqSh"><img alt="Discord Support Server" src="https://img.shields.io/discord/702476896008405002?style=for-the-badge&color=7289DA&label=Support%20Server&logo=discord&logoColor=fff"></a>
</p>
<p align="center">
  <a href="https://www.npmjs.com/package/@node-discord/core"><img alt="NPM Version" src="https://img.shields.io/npm/v/@node-discord/core?style=for-the-badge"></a>
  <a href="https://www.npmjs.com/package/@node-discord/core"><img alt="NPM Downloads" src="https://img.shields.io/npm/dt/@node-discord/core?style=for-the-badge"></a>
  <a href="https://www.npmjs.com/package/@node-discord/core"><img alt="Node Verison" src="https://img.shields.io/node/v/@node-discord/core?style=for-the-badge"></a>
</p>
<p align="center">
  <a href="#"><img alt="Test Status" src="https://img.shields.io/github/workflow/status/alon-l/node-discord/Test?label=Test&style=for-the-badge"></a>
  <a href="#"><img alt="Deploy Status" src="https://img.shields.io/github/workflow/status/alon-l/node-discord/Deploy?label=Deploy&style=for-the-badge"></a>
  <a href="LICENSE"><img alt="License" src="https://img.shields.io/npm/l/@node-discord/core?style=for-the-badge"></a>
</p>

Node-discord is a strict TypeScript Discord API Wrapper that focuses on utility and extensibility.  
The library implements every core aspect of the Discord API and provides additional tools to assist developers with their needs.

# Getting Started
Install the library using NPM or Yarn:
```
$ npm install @node-discord/core

$ yarn add @node-discord/core
```

## Quick Code Example
Here is a short code example to initialize a Bot and connect it to the Discord gateway.
```javascript
const { Bot, BotEvent } = require('@node-discord/core');

const bot = new Bot('YOUR BOT TOKEN');

bot.events.on(BotEvent.Ready, () => {
  console.log('Ready!');
});

bot.connect();
```

# Features
✔️ Strictly written in TypeScript  
✔️ Lightweight  
✔️ Fully supports the Discord API  

## Coming Features
☄️ Fully extendable plugins API  
☄️ Additional utilities  
☄️ CLI generator for new projects  
☄️ Custom ESLint configuration  

# Optional Libraries
There are multiple optional libraries which could be installed in addition to node-discord to improve performance.
- **erlpack** - Provides fast encoding and decoding for WebSocket payloads.
- **zlib-sync** - Compresses and decompresses WebSocket payloads before attempting to parse them.

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