# @discordjs/util

> Utilities shared across Discord.js packages

Latest version **1.2.0** (published 2025-11-18) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @discordjs/util
pnpm add @discordjs/util
yarn add @discordjs/util
bun add @discordjs/util
```

## Health

**Score 75/100 (B)** — status: stable.

Positive: has types; esm support; no vulnerabilities; has provenance; high maintenance score; high quality score; popular repo.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2025-11-18 |
| First published | 2022-10-03 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=18 |
| Dependencies | 1 |
| Unpacked size | 54.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 26806 |
| Maintainers | crawl, hydrabolt |
| Keywords | api, bot, client, node, discordjs |

## Links

- npm: https://www.npmjs.com/package/@discordjs/util
- Repository: https://github.com/discordjs/discord.js
- Homepage: https://discord.js.org
- Issues: https://github.com/discordjs/discord.js/issues
- Funding: https://github.com/discordjs/discord.js?sponsor
- npm.io page: https://npm.io/package/@discordjs/util

## Dependencies (1)

- [discord-api-types](https://npm.io/package/discord-api-types.md) ^0.38.33

## 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.2.0 (latest) — 2025-11-18
- 2.0.0-dev.1789257813-c626815bf (dev) — 2026-09-13
- 2.0.0-pr-11602.1789066132-275cd4b42 (pr-11602) — 2026-09-10
- 2.0.0-dev.1788912206-a4116036b — 2026-09-09
- 2.0.0-dev.1788696123-5f6cbf111 — 2026-09-06
- 2.0.0-dev.1788566584-096177189 — 2026-09-05
- 2.0.0-dev.1788538586-ecea9ed57 — 2026-09-04
- 2.0.0-dev.1788537163-f3a574779 — 2026-09-04
- 2.0.0-dev.1786968995-99af6d8be — 2026-08-17
- 2.0.0-dev.1786752260-c9855614c — 2026-08-15
- 2.0.0-dev.1786623302-905445ec9 — 2026-08-13
- 2.0.0-dev.1786233958-b1a77045f — 2026-08-09
- 2.0.0-dev.1785370677-4b3f1c166 — 2026-07-30
- 2.0.0-dev.1784593104-219ad7ba0 — 2026-07-21
- 2.0.0-dev.1784551164-2de90a767 — 2026-07-20
- … 1226 more at https://npm.io/package/@discordjs/util/versions

## README

<div align="center">
	<br />
	<p>
		<a href="https://discord.js.org"><img src="https://discord.js.org/static/logo.svg" width="546" alt="discord.js" /></a>
	</p>
	<br />
	<p>
		<a href="https://discord.gg/djs"><img src="https://img.shields.io/discord/222078108977594368?color=5865F2&logo=discord&logoColor=white" alt="Discord server" /></a>
		<a href="https://github.com/discordjs/discord.js/actions"><img src="https://github.com/discordjs/discord.js/actions/workflows/test.yml/badge.svg" alt="Build status" /></a>
		<a href="https://github.com/discordjs/discord.js/commits/main/packages/util"><img alt="Last commit." src="https://img.shields.io/github/last-commit/discordjs/discord.js?logo=github&logoColor=ffffff&path=packages%2Futil"></a>
	</p>
	<p>
		<a href="https://vercel.com/?utm_source=discordjs&utm_campaign=oss"><img src="https://raw.githubusercontent.com/discordjs/discord.js/main/.github/powered-by-vercel.svg" alt="Vercel" /></a>
		<a href="https://www.cloudflare.com"><img src="https://raw.githubusercontent.com/discordjs/discord.js/main/.github/powered-by-workers.png" alt="Cloudflare Workers" height="44" /></a>
	</p>
</div>

## About

`@discordjs/util` is a collection of utility functions for use with discord.js.

## Installation

**Node.js 18 or newer is required.**

```sh
npm install @discordjs/util
yarn add @discordjs/util
pnpm add @discordjs/util
bun add @discordjs/util
```

## Links

- [Website][website] ([source][website-source])
- [Documentation][documentation]
- [Guide][guide] ([source][guide-source])
  Also see the v13 to v14 [Update Guide][guide-update], which includes updated and removed items from the library.
- [discord.js Discord server][discord]
- [Discord API Discord server][discord-api]
- [GitHub][source]
- [npm][npm]
- [Related libraries][related-libs]

## Contributing

Before creating an issue, please ensure that it hasn't already been reported/suggested, and double-check the
[documentation][documentation].  
See [the contribution guide][contributing] if you'd like to submit a PR.

## Help

If you don't understand something in the documentation, you are experiencing problems, or you just need a gentle nudge in the right direction, please don't hesitate to join our official [discord.js Server][discord].

[website]: https://discord.js.org
[website-source]: https://github.com/discordjs/discord.js/tree/main/apps/website
[documentation]: https://discord.js.org/docs/packages/util/stable
[guide]: https://discordjs.guide/
[guide-source]: https://github.com/discordjs/guide
[guide-update]: https://discordjs.guide/additional-info/changes-in-v14.html
[discord]: https://discord.gg/djs
[discord-api]: https://discord.gg/discord-api
[source]: https://github.com/discordjs/discord.js/tree/main/packages/util
[npm]: https://www.npmjs.com/package/@discordjs/util
[related-libs]: https://discord.com/developers/docs/topics/community-resources#libraries
[contributing]: https://github.com/discordjs/discord.js/blob/main/.github/CONTRIBUTING.md

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