deno_unicode

tag Build Status license

unicode lookup table, provides data from http://unicode.org/Public/UNIDATA/UnicodeData.txt for Deno.

Usage

import unicode from "https://deno.land/x/unicode/mod.ts";

const code = "♥".charCodeAt(0);  // 9829
console.log(unicode[code]);

output:

{
  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: '♥'
}

recommend

import So from "https://deno.land/x/unicode/category/So.ts";

const code = "♥".charCodeAt(0);  // 9829
console.log(So[code]);

License

deno_unicode is released under the MIT License. See the bundled LICENSE file for details.