Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more

@intilfy/utils

npm version npm downloads CI

Collection of i18n utilities

๐ŸŒŸ Features

โœ…๏ธ ย Modern: ES Modules first and respect Web Standard and ECMAScript Internationalization APIs

โœ…๏ธ ย Compatible: support CommonJS and various JS environments

โœ…๏ธ๏ธ ย Minimal: Small and fully tree-shakable

โœ…๏ธ๏ธ ย Type Strong: Written in TypeScript, with full JSdoc

๐Ÿ’ฟ Installation

๐Ÿข Node.js

# Using npm
npm install @intlify/utils

# Using yarn
yarn add @intlify/utils

# Using pnpm
pnpm add @intlify/utils

๐Ÿฆ• Deno

deno add jsr:@intlify/utils

๐ŸฅŸ Bun

bun add @intlify/utils

๐ŸŒ Browser

in your 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: npm run play:node
  • ๐Ÿฆ• Deno: npm run play:deno
  • ๐ŸฅŸ Bun: npm run play:bun
  • ๐ŸŒ Browser: npm run play:browser

๐Ÿค API

See the API docs

๐Ÿ™Œ Contributing guidelines

If you are interested in contributing to @intlify/utils, I highly recommend checking out the contributing guidelines here. Youโ€™ll find all the relevant information such as how to make a PR, how to setup development) etc., there.

ยฉ๏ธ License

MIT