# @discordjs/collection

> Utility data structure used in discord.js

Latest version **2.1.1** (published 2024-09-02) · Apache-2.0 license · 0 weekly downloads

## Install

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

## Health

**Score 55/100 (C)** — status: abandoned.

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

Warnings: low downloads.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.1.1 |
| Published | 2024-09-02 |
| First published | 2019-09-05 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=18 |
| Dependencies | 0 |
| Unpacked size | 209.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 26822 |
| Maintainers | crawl, hydrabolt |
| Keywords | map, collection, utility |

## Links

- npm: https://www.npmjs.com/package/@discordjs/collection
- 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/collection

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 2.1.1 (latest) — 2024-09-02
- 3.0.0-dev.1789257813-c626815bf (dev) — 2026-09-13
- 3.0.0-pr-11602.1789066132-275cd4b42 (pr-11602) — 2026-09-10
- 3.0.0-dev.1788912206-a4116036b — 2026-09-09
- 3.0.0-dev.1788696123-5f6cbf111 — 2026-09-06
- 3.0.0-dev.1788566584-096177189 — 2026-09-05
- 3.0.0-dev.1788538586-ecea9ed57 — 2026-09-04
- 3.0.0-dev.1788537163-f3a574779 — 2026-09-04
- 3.0.0-dev.1786968995-99af6d8be — 2026-08-17
- 3.0.0-dev.1786752260-c9855614c — 2026-08-15
- 3.0.0-dev.1786623302-905445ec9 — 2026-08-13
- 3.0.0-dev.1786233958-b1a77045f — 2026-08-09
- 3.0.0-dev.1785370677-4b3f1c166 — 2026-07-30
- 3.0.0-dev.1784593104-219ad7ba0 — 2026-07-21
- 3.0.0-dev.1784551164-2de90a767 — 2026-07-20
- … 1514 more at https://npm.io/package/@discordjs/collection/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://www.npmjs.com/package/@discordjs/collection"><img src="https://img.shields.io/npm/v/@discordjs/collection.svg?maxAge=3600" alt="npm version" /></a>
		<a href="https://www.npmjs.com/package/@discordjs/collection"><img src="https://img.shields.io/npm/dt/@discordjs/collection.svg?maxAge=3600" alt="npm downloads" /></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://codecov.io/gh/discordjs/discord.js" ><img src="https://codecov.io/gh/discordjs/discord.js/branch/main/graph/badge.svg?precision=2&flag=collection" alt="Code coverage" /></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/collection` is a powerful utility data structure used in discord.js.

## Installation

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

```sh
npm install @discordjs/collection
yarn add @discordjs/collection
pnpm add @discordjs/collection
```

## 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/collection/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/collection
[npm]: https://www.npmjs.com/package/@discordjs/collection
[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/collection · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
