@intlify/utils
v1.0.1
Published
Collection of i18n utilities
Readme
@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.
