Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
unicode lookup table
JavaScript
Failed to load latest commit information.
category
.gitignore
.travis.yml
LICENSE add mit license
README.md
install.js add NODE_UNICODETABLE_UNICODEDATA_TXT as manual pacl to UnicodeData.txt
package.json bump version
test.js

README.md

unicode lookup table

loads http://unicode.org/Public/UNIDATA/UnicodeData.txt into nodejs.

Build Status

install

# debian
sudo apt-get install unicode-data # optional
# gentoo
sudo emerge unicode-data # optional

npm install unicode

If you have problems installing UnicodeData.txt because unicode.org is down or you're behind a proxy, try installing unicode-data via your system package installer.

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

example

master//node-unicodetable » node
> require('unicode/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: '' }
Something went wrong with that request. Please try again.