# @intlify/utils

> Collection of i18n utilities

Latest version **1.0.1** (published 2025-11-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install @intlify/utils
pnpm add @intlify/utils
yarn add @intlify/utils
bun add @intlify/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 | 1.0.1 |
| Published | 2025-11-12 |
| First published | 2023-09-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >= 20 |
| Dependencies | 0 |
| Unpacked size | 226.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| Author | kazuya kawaguchi |
| Maintainers | kazupon, ota-meshi |
| Keywords | i18n, internationalization, intlify, utilities |

## Links

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

## Alternatives

- [messageformat](https://npm.io/package/messageformat.md) — 329.7K weekly downloads
- [@mintlify/scraping](https://npm.io/package/@mintlify/scraping.md) — 294.8K weekly downloads
- [@mintlify/previewing](https://npm.io/package/@mintlify/previewing.md) — 209.5K weekly downloads
- [@mintlify/prebuild](https://npm.io/package/@mintlify/prebuild.md) — 209.5K weekly downloads
- [@mintlify/link-rot](https://npm.io/package/@mintlify/link-rot.md) — 206.3K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2025-11-12
- 1.0.0 (main) — 2025-11-12
- 1.0.0-beta.5 — 2025-11-12
- 0.14.1 — 2025-11-06
- 0.14.0 — 2025-11-06
- 0.13.0 — 2024-03-02
- 0.12.0 — 2023-12-06
- 0.11.1 — 2023-10-23
- 0.11.0 — 2023-10-23
- 0.10.0 — 2023-10-19
- 0.9.0 — 2023-10-17
- 0.8.0 — 2023-10-17
- 0.7.0 — 2023-10-13
- 0.6.0 — 2023-09-29
- 0.5.0 — 2023-09-27
- … 9 more at https://npm.io/package/@intlify/utils/versions

## README

# @intilfy/utils

[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![CI][ci-src]][ci-href]

Collection of i18n utilities

## 🌟 Features

✅️ &nbsp;**Modern:** ES Modules first and respect Web Standard and ECMAScript
Internationalization APIs

✅️ &nbsp;**Compatible:** support CommonJS and various JS environments

✅️️ &nbsp;**Minimal:** Small and fully tree-shakable

✅️️ &nbsp;**Type Strong:** Written in TypeScript, with full JSdoc

## 💿 Installation

### 🐢 Node.js

```sh
# Using npm
npm install @intlify/utils

# Using yarn
yarn add @intlify/utils

# Using pnpm
pnpm add @intlify/utils
```

### 🦕 Deno

```sh
deno add jsr:@intlify/utils
```

### 🥟 Bun

```sh
bun add @intlify/utils
```

### 🌍 Browser

in your HTML:

```html
<script type="module">
  /**
   * you can install via other CDN URL such as skypack,
   * or, you can also use import maps
   */
  import { isLocale } from 'https://esm.sh/@intlify/utils'

  // something todo
  // ...
</script>
```

## 🍭 Playground

You can play the below examples:

- 🐢 [Node.js](https://github.com/intlify/utils/tree/main/examples/node):
  `npm run play:node`
- 🦕 [Deno](https://github.com/intlify/utils/tree/main/examples/deno):
  `npm run play:deno`
- 🥟 [Bun](https://github.com/intlify/utils/tree/main/examples/bun):
  `npm run play:bun`
- 🌍 [Browser](https://github.com/intlify/utils/tree/main/examples/browser):
  `npm run play:browser`

## 🤝 API

See the [API docs](./docs/index.md)

## 🙌 Contributing guidelines

If you are interested in contributing to `@intlify/utils`, I highly recommend checking out [the contributing guidelines](/CONTRIBUTING.md) here. You'll find all the relevant information such as [how to make a PR](/CONTRIBUTING.md#pull-request-guidelines), [how to setup development](/CONTRIBUTING.md#development-setup)) etc., there.

## ©️ License

[MIT](http://opensource.org/licenses/MIT)

<!-- Badges -->

[npm-version-src]: https://img.shields.io/npm/v/@intlify/utils?style=flat&colorA=18181B&colorB=FFAD33
[npm-version-href]: https://npmjs.com/package/@intlify/utils
[npm-downloads-src]: https://img.shields.io/npm/dm/@intlify/utils?style=flat&colorA=18181B&colorB=FFAD33
[npm-downloads-href]: https://npmjs.com/package/@intlify/utils
[ci-src]: https://github.com/intlify/utils/actions/workflows/ci.yml/badge.svg
[ci-href]: https://github.com/intlify/utils/actions/workflows/ci.yml

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