# @antfu/utils

> Opinionated collection of common JavaScript / TypeScript utils by @antfu

Latest version **9.3.0** (published 2025-10-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install @antfu/utils
pnpm add @antfu/utils
yarn add @antfu/utils
bun add @antfu/utils
```

## Health

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

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 9.3.0 |
| Published | 2025-10-06 |
| First published | 2021-04-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 44.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 877 |
| Author | Anthony Fu |
| Maintainers | antfu |
| Keywords | utils |

## Links

- npm: https://www.npmjs.com/package/@antfu/utils
- Repository: https://github.com/antfu/utils
- Homepage: https://github.com/antfu/utils#readme
- Issues: https://github.com/antfu/utils/issues
- Funding: https://github.com/sponsors/antfu
- npm.io page: https://npm.io/package/@antfu/utils

## Recent versions

- 9.3.0 (latest) — 2025-10-06
- 9.2.1 — 2025-09-19
- 9.2.0 — 2025-04-02
- 9.1.0 — 2025-02-17
- 9.0.0 — 2025-02-15
- 8.1.1 — 2025-02-15
- 8.1.0 — 2025-01-14
- 8.0.0 — 2025-01-09
- 0.7.10 — 2024-06-25
- 0.7.8 — 2024-05-08
- 0.7.7 — 2023-12-10
- 0.7.6 — 2023-08-14
- 0.7.5 — 2023-07-02
- 0.7.4 — 2023-05-31
- 0.7.3 — 2023-05-30
- … 31 more at https://npm.io/package/@antfu/utils/versions

## README

# @antfu/utils

[![NPM version](https://img.shields.io/npm/v/@antfu/utils?color=a1b858&label=)](https://www.npmjs.com/package/@antfu/utils)
[![Docs](https://img.shields.io/badge/docs-green)](https://www.jsdocs.io/package/@antfu/utils)

Opinionated collection of common JavaScript / TypeScript utils by [@antfu](https://github.com/antfu).

- Tree-shakable ESM
- Fully typed - with TSDocs
- Type utilities - `Arrayable<T>`, `ElementOf<T>`, etc.

> This package is designed to be used as `devDependencies` and bundled into your dist.

## Sponsors

<p align="center">
  <a href="https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg">
    <img src='https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg'/>
  </a>
</p>

## License

[MIT](./LICENSE) License © 2021-PRESENT [Anthony Fu](https://github.com/antfu)

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