https://github.com/marvinhagemeister/node-icu
Package to download the correct icu-data file for nodejs
https://github.com/marvinhagemeister/node-icu
icu icu4c node nodejs
Last synced: 7 months ago
JSON representation
Package to download the correct icu-data file for nodejs
- Host: GitHub
- URL: https://github.com/marvinhagemeister/node-icu
- Owner: marvinhagemeister
- License: mit
- Created: 2017-05-16T06:08:46.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-17T19:09:09.000Z (over 8 years ago)
- Last Synced: 2025-03-06T06:46:06.135Z (8 months ago)
- Topics: icu, icu4c, node, nodejs
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Node ICU
**NOTE: This package is not necessary anymore, because [full-icu](https://github.com/unicode-org/full-icu-npm) just released an updated version with support for yarn. Please use that one instead.**
Downloads the correct icu `.dat` file for your cpu-architecture and node
version.
## Installation
```bash
# npm
npm install node-icu
# yarn
yarn add node-icu
```
To use the icu data, start node with the `--icu-data-dir` option or set the
`NODE_ICU_DATA` environment variable.
Example:
```bash
node --icu-data-dir=node_modules/node-icu myapp.js
```
To test if everything is working, run this:
```js
// should return "enero" instead of "January"
new Intl.DateTimeFormat('es',{month:'long'}).format(new Date(9E8));
```
## License
`MIT` see [License](License.md).