# webiscord

> \ **Example Usage:**

Latest version **0.0.3** (published 2022-02-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install webiscord
pnpm add webiscord
yarn add webiscord
bun add webiscord
```

## Health

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

Positive: has types; no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2022-02-21 |
| First published | 2022-02-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.8 KB |
| Known vulnerabilities | 0 (+23 in 1 direct dependencies) |
| Install scripts | no |
| Author | atomic__gamer |
| Maintainers | atomic__gamer |

## Links

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

## Dependencies (1)

- [axios](https://npm.io/package/axios.md) ^0.26.0

## Recent versions

- 0.0.3 (latest) — 2022-02-21
- 0.0.2 — 2022-02-21
- 0.0.1 — 2022-02-21

## README

# **web-cord**

### **A library to help you authenticate with the discord's API**

\
**Example Usage:**

```javascript
const express = require("express");
const wc = require("webiscord");
const webcord = new wc.webcord(
  YOUR_CLIENT_ID,
  YOUR_CLIENT_SECRET
);
const app = express();
app.listen(3000);


app.get('/', (req, res) => {
  res.send("Hello World");
});

app.get('/login', (req, res) => {
  const data = wc.getData(req.query.code);
  console.log(data);
});
```

\
**Example response:**

```
{
  id: "01234567890123456789",
  username: "user",
  avatar: "0123456789abcdefghijklmnopqrstuv",
  discriminator: "0123",
  public_flags: 64,
  flags: 64,
  banner: null,
  banner_color: "#RRGGBB",
  accent_color: 0123456,
  locale: "en-US",
  mfa_enabled: true,
  email: "discord_user@service.com",
  verified: true
}
```

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