Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ynakajima/ucd
UCD - Unicode Character Database for JavaScript
https://github.com/ynakajima/ucd
Last synced: 3 months ago
JSON representation
UCD - Unicode Character Database for JavaScript
- Host: GitHub
- URL: https://github.com/ynakajima/ucd
- Owner: ynakajima
- License: mit
- Created: 2013-01-06T22:51:44.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-04-27T08:07:09.000Z (over 11 years ago)
- Last Synced: 2024-07-09T10:28:44.771Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 1.13 MB
- Stars: 9
- Watchers: 6
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE.txt
Awesome Lists containing this project
- awesome-typography - UCD - Unicode Character Database for JavaScript. (JavaScript)
README
# UCD - Unicode Character Database for JavaScript
UCD offers a series of functions that provide a simple interface to the Unicode Character Database.
# Supported Platforms
* Node.js
* Modern Web Browsers## Install to Node.js
```sh
npm install ucd
```## How to load a UCD module
### Node.js
```javascript
// load UCD
var UCD = require('ucd');
```### Web Browser
```html```
## Usage
### Get Unicode Name
`.getName()` method returns a Unicode Name of character given as argument.```javascript
UCD.getName('@'); // "COMMERCIAL AT"
UCD.getName('2'); // "DIGIT TWO"
UCD.getName('L'); // "LATIN CAPITAL LETTER L"
UCD.getName('m'); // "LATIN SMALL LETTER M"
UCD.getName('ü'); // "LATIN SMALL LETTER U WITH DIAERESIS"
UCD.getName('ſt'); // "LATIN SMALL LIGATURE LONG S T"
UCD.getName('ق'); // "ARABIC LETTER QAF"
UCD.getName('תּ'); // "HEBREW LETTER TAV WITH DAGESH"
UCD.getName('あ'); // "HIRAGANA LETTER A"
UCD.getName('か'); // "HIRAGANA LETTER KA"
UCD.getName('ヨ'); // "KATAKANA LETTER YO"
UCD.getName(')'); // "FULLWIDTH RIGHT PARENTHESIS"
UCD.getName('漢'); // "CJK UNIFIED IDEOGRAPH-6F22"
UCD.getName('⿒'); // "KANGXI RADICAL TOOTH"
UCD.getName('㉀'); // "PARENTHESIZED IDEOGRAPH FESTIVAL"
UCD.getName('☣'); // "BIOHAZARD SIGN"
```## License
Released under the MIT license.Copyright (c) 2013 ynakajima