unicode-json

v1.0.3
unicode lookup table

unicode-json Build Status NPM version

Downloads https://unicode.org/Public/UNIDATA/UnicodeData.txt and saves each category into a JSON file

Install

npm install --save unicode-json

If you got the file already at hand you can specify the path to it in the environment variable NODE_UNICODETABLE_UNICODEDATA_TXT.

Usage

> require('unicode-json/category/So')['♥'.charCodeAt(0)]
{ value: '2665',
  name: 'BLACK HEART SUIT',
  category: 'So',
  class: '0',
  bidirectional_category: 'ON',
  mapping: '',
  decimal_digit_value: '',
  digit_value: '',
  numeric_value: '',
  mirrored: 'N',
  unicode_name: '',
  comment: '',
  uppercase_mapping: '',
  lowercase_mapping: '',
  titlecase_mapping: '',
  symbol: '♥' }

License

MIT

Metadata

  • MIT
  • >=0.12
  • Zertz
  • released 6/11/2017

Downloads

Maintainers