# razu-rest

> The REST API for discord.js

Latest version **1.0.1** (published 2022-01-15) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install razu-rest
pnpm add razu-rest
yarn add razu-rest
bun add razu-rest
```

## Health

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

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

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2022-01-15 |
| First published | 2022-01-10 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=16.0.0 |
| Dependencies | 8 |
| Unpacked size | 191 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 188 |
| Maintainers | razulmao |
| Keywords | discord, api, rest, discordapp, discordjs |

## Links

- npm: https://www.npmjs.com/package/razu-rest
- Repository: https://github.com/discordjs/discord.js-modules
- Homepage: https://github.com/discordjs/discord.js-modules/tree/main/packages/rest
- Issues: https://github.com/discordjs/discord.js-modules/issues
- npm.io page: https://npm.io/package/razu-rest

## Dependencies (8)

- [tslib](https://npm.io/package/tslib.md) ^2.3.1
- [form-data](https://npm.io/package/form-data.md) ^4.0.0
- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.5
- [typescript](https://npm.io/package/typescript.md) ^4.5.4
- [discord-api-types](https://npm.io/package/discord-api-types.md) ^0.25.2
- [@sapphire/snowflake](https://npm.io/package/@sapphire/snowflake.md) ^3.0.0
- [@discordjs/collection](https://npm.io/package/@discordjs/collection.md) ^0.3.2
- [@sapphire/async-queue](https://npm.io/package/@sapphire/async-queue.md) ^1.1.9

## Alternatives

- [launchdarkly-js-client-sdk](https://npm.io/package/launchdarkly-js-client-sdk.md) — 2.5M weekly downloads
- [@elastic/elasticsearch](https://npm.io/package/@elastic/elasticsearch.md) — 2.1M weekly downloads
- [@c8y/client](https://npm.io/package/@c8y/client.md) — 15.3K weekly downloads
- [@signaldb/maverickjs](https://npm.io/package/@signaldb/maverickjs.md) — 1.7K weekly downloads
- [@bbc/http-transport-cache](https://npm.io/package/@bbc/http-transport-cache.md) — 1.2K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2022-01-15
- 1.0.0 — 2022-01-10

## README

# `@razulmfao/rest`

> A fork of @discordjs/rest but with more features.

```js
import { REST } from '@razulmfao/rest';

class RequestClient extends REST {
	client = new REST();
	authPrefix;

	/**
	 * @param {string} token
	 * @param {"Bot" | "Bearer"} authPrefix
	 **/
	construct(token, authPrefix = 'Bot') {
		if (token) this.client.setToken(token);
		this.authPrefix = authPrefix;
	}

	/**
	 * @description "Fetches the users information."
	 **/
	fetchMe() {
		return this.client.get('/users/@me', {
			authPrefix: this.authPrefix,
		});
	}
}
```

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