unicode-json
v2.0.0
Published
unicode lookup table
Downloads
14
Readme
unicode-json
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