New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

node-icu

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-icu

Node icu package

latest
Source
npmnpm
Version
1.1.0
Version published
Weekly downloads
4
-55.56%
Maintainers
1
Weekly downloads
 
Created
Source

Node ICU

Downloads the correct icu .dat file for your cpu-architecture and node version.

Installation

# 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:

node --icu-data-dir=node_modules/node-icu myapp.js

To test if everything is working, run this:

// should return "enero" instead of "January"
new Intl.DateTimeFormat('es',{month:'long'}).format(new Date(9E8));

License

MIT see License.

Keywords

icu

FAQs

Package last updated on 16 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts