Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/justjavac/deno_unicode

Unicode lookup table for Deno
https://github.com/justjavac/deno_unicode

deno deno-unicode unicode unicode-lookup-table

Last synced: 12 days ago
JSON representation

Unicode lookup table for Deno

Awesome Lists containing this project

README

        

# deno_unicode

[![tag](https://img.shields.io/github/release/justjavac/deno_unicode)](https://github.com/justjavac/deno_unicode/releases)
[![ci](https://github.com/justjavac/deno_unicode/actions/workflows/ci.yml/badge.svg)](https://github.com/justjavac/deno_unicode/actions/workflows/ci.yml)
[![license](https://img.shields.io/github/license/justjavac/deno_unicode)](https://github.com/justjavac/deno_unicode/blob/master/LICENSE)

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

## Usage

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

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

output:

```ts
{
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**

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

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

## License

[deno_unicode](https://github.com/justjavac/deno_unicode) is released under the MIT License. See the bundled [LICENSE](./LICENSE) file for details.