README
easta
Unicode East Asian Width data for Node.js
Based on EastAsianWidth-13.0.0.
Usage
const easta = require('easta');
assert(easta('A') === 'Na'); // Narrow
assert(easta('A') === 'F'); // Fullwidth
assert(easta('ア') === 'W'); // Wide
assert(easta('ア') === 'H'); // Halfwidth
assert(easta('α') === 'A'); // Ambiguous
assert(easta('À') === 'N'); // Neutral
Changelog
- 5.0.0: update for Unicode 13.0.0, drop Node v8
- 4.0.0: update for Unicode 12.1.0, support for Node v12 and drop v6
- 3.0.1: reduce data size from 24KB to 13KB
- 3.0.0: update for Unicode 11.0.0, support for Node v10 and drop v4
- 2.0.0: update for Unicode 10.0.0, support for Node v8 and drop v7
- 1.0.1: fix document
- 1.0.0: initial release (based on Unicode 9.0.0)
License
MIT License: Teppei Sato <teppeis@gmail.com>