# @aero/drep

> Official wrapper for the DiscordRep API.

Latest version **2.1.3** (published 2022-02-25) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install @aero/drep
pnpm add @aero/drep
yarn add @aero/drep
bun add @aero/drep
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.3 |
| Published | 2022-02-25 |
| First published | 2020-01-13 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 7.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Ravy |
| Maintainers | nekiono, princessravy |

## Links

- npm: https://www.npmjs.com/package/@aero/drep
- Repository: https://ravy.dev/aero/libs/drep.js
- npm.io page: https://npm.io/package/@aero/drep

## Dependencies (1)

- [@aero/http](https://npm.io/package/@aero/http.md) ^1.0.5

## Recent versions

- 2.1.3 (latest) — 2022-02-25
- 2.1.2 — 2022-02-25
- 2.1.1 — 2022-02-25
- 2.1.0 — 2022-02-23
- 2.0.3 — 2020-05-01
- 2.0.2 — 2020-05-01
- 2.0.1 — 2020-04-22
- 2.0.0 — 2020-04-22
- 1.2.13 — 2020-03-01
- 1.2.12 — 2020-02-24
- 1.2.11 — 2020-02-24
- 1.2.10 — 2020-02-24
- 1.2.9 — 2020-02-03
- 1.2.8 — 2020-01-13
- 1.2.7 — 2020-01-13

## README

# @drep/api

Official wrapper of the [DiscordRep API](https://docs.discordrep.com/).


## Install

```bash
$ npm i @drep/api
```

## Usage

```js
const { DRepClient } = require('@aero/drep');
const drep = new DRepClient('your-fancy-token');
```


## Endpoints

```ts
class DRepClient {
	rep(userID: string): Reputation;
	infractions(userID: string): Ban | Warn | null;
}
```


## Return Types
```ts
interface Reputation {
	upvotes: number;
	downvotes: number;
	reputation: number;
	rank: string;
	xp: number;
	staff: boolean;
}

interface Ban {
	moderator: string;
	reason: string;
	date: Date;
}

interface Warn {
	moderator: string;
	reason: string;
	date: Date;
}
```

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