Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/justjavac/deno_unicode
- Owner: justjavac
- License: mit
- Created: 2020-08-19T09:00:37.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-25T14:20:58.000Z (over 2 years ago)
- Last Synced: 2024-11-23T11:08:10.889Z (29 days ago)
- Topics: deno, deno-unicode, unicode, unicode-lookup-table
- Language: TypeScript
- Homepage: https://deno.land/x/unicode
- Size: 801 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.