unicode-json

2.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i unicode-json

Weekly Downloads

15

Version

2.0.0

License

MIT

Last publish

Collaborators

  • zertz