Trott / icu4c-data-npm

ICU4C data in NPM

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

icu4c-data

An ICU4C Data Packager for Node.js

Note: This module may become obsolete, please refer to this issue accordingly. No updates have been planned for ICU 65 and above, in regards to little endian Intel systems.

About icu4c-data

This is the data package builder for the full-icu module. Please refer to full-icu if you only want to install ICU data.

Use: Building the data

To use this module: first acquire the data file, such as icudt58l.dat from an ICU build, or from the official ICU source tarball (.tgz/.zip).

  1. You can use the following script to do so in bash:
bash fetchdata.sh 58.2
  1. Then publish the little-endian file
npm run gen -- icudt58l.dat

This will output a line labelled 'run this command' (starting with rm …). Run that command after each time you execute npm run gen.

  1. Now publish the big endian file.

npm run gen -- icudt58b.dat

Remember to run the commands as instructed in section 2.

LICENSE

This repository is subject to the terms under the Node.js license. Some usage of this data is governed by the Unicode Terms of Use, which is included in the unicode-license.txt

COPYRIGHT

Copyright © 1991-2021 Unicode, Inc. and Node.js contributors. All rights reserved.

Unicode terms of use

About

ICU4C data in NPM

License:Other


Languages

Language:Shell 58.0%Language:JavaScript 42.0%