The `full-icu` package, currently at version 1.5.0, provides a utility for Node.js environments configured with `small-icu` to enable full International Components for Unicode (ICU) data at runtime. This module became significantly less critical with Node.js 13 and later, which default to full ICU data, rendering `full-icu` largely unnecessary for modern applications unless using a custom Node.js build explicitly set to `small-icu`. Its release cadence is irregular, typically tied to maintenance or updates related to Node.js's ICU integration. Unlike other internationalization libraries, `full-icu` does not introduce new APIs; instead, it focuses solely on providing the underlying data necessary for Node.js's built-in `Intl` object to function with all locales, downloading it from GitHub releases or optionally the `icu4c-data` npm package. Its primary differentiator is simplifying the process of obtaining full ICU data without requiring a custom Node.js build, making it a tool primarily for specific legacy or specialized Node.js configurations.
npm install full-icuVerified import paths — ran on the pinned version, not inferred.
This quickstart first verifies if a Node.js environment is configured with 'small-icu', then demonstrates how to use the `full-icu` package to retrieve its metadata and the path to the installed ICU data file after installation.
Before installing, check `node -p 'process.config.variables.icu_small'` to see if your Node.js version is built with 'small-icu'. If it returns `false`, `full-icu` is not required.
Ensure `npm install` is run in an environment with network access and permissions to write files. Check `npm config get ignore-scripts` to ensure it's not set to `true`. Manual data placement or using the `FULL_ICU_PREFER_NPM=true` environment variable might be necessary if GitHub downloads are blocked.
If experiencing download issues or requiring data from the `icu4c-data` npm package, set the environment variable `FULL_ICU_PREFER_NPM=true` before running `npm install full-icu`.
Run `npm install full-icu` to ensure the package is installed. Verify the `node_modules` directory is correctly configured and accessible by your Node.js application.
Re-run `npm install full-icu`. Check the install logs for any errors related to the `postinstall` script. Ensure `npm`'s `bin` directory is in your PATH if running directly, or use `npx node-full-icu-path`.
No fix required, as the package is not needed. If you are on an older Node.js version and still see this, verify your Node.js build configuration by checking `node -p 'process.config.variables.icu_small'`.
No dependency data recorded yet.