v1.0.0
Collection of i18n utilities
Repository
Current version released
a week ago
Dependencies
other
@intilfy/utils
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.