Giter Site home page Giter Site logo

richardlau / full-icu-npm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nodejs/full-icu-npm

0.0 0.0 0.0 80 KB

>>> This may become obsolete, read and comment >>>

Home Page: https://github.com/nodejs/node/issues/19214

License: Other

JavaScript 100.00%

full-icu-npm's Introduction

full-icu-npm

Install full ICU data

To use

npm install full-icu

To install globally

npm install -g full-icu

After Installation

Instructions will be printed out on how to activate this data for your version of node.

This work gets done in a postinstall script which copies the icudt*.dat file up to this module's level.

API

require('full-icu') returns a few properties:

  • nodever - the full Node version (ex: 14.2.0)

  • node_maj - the major part of the node version (ex: 14)

  • node_min - the minor part of the node version (ex 2)

  • icu_small - if truthy, means that node was built with small-icu (English only). If falsy, means that the full-icu package is not relevant.

  • icuver - the full ICU version, if available, such as 55.1. Sometimes only the major version is available.

  • icumaj - ICU major ver, such as 55. May be === icuver.

  • icumin - ICU minor version, such as 1 if available.

  • icuend - ICU endianness - little, big or ebcdic.

  • icupkg - the npm package needed to get full ICU data, if any.

  • icudat - the raw data file ICU expects to find for full data, if any.

  • noi18n - if truthy, no ICU / Intl build was enabled for your node version. Sorry.

  • oldNode - The node version is older than this package can really think about.

BIN

node-full-icu-path will print the full icudt*.dat path, if available.

CONTRIBUTING

Please see our CONTRIBUTING guide if you'd like to help with this initiative!

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.