easta
v8.0.0
Published
Unicode East Asian Width data for Node.js
Downloads
105
Readme
easta
Unicode East Asian Width data for Node.js
Based on EastAsianWidth-15.1.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
- 8.0.0: update for Unicode 15.1.0, support Node v18+
- 7.0.0: update for Unicode 15.0.0, support Node v14+
- 6.0.0: update for Unicode 14.0.0, support Node v12+ and add typings for TypeScript
- 5.0.0: update for Unicode 13.0.0, support Node v10+
- 4.0.0: update for Unicode 12.1.0, support for Node v8+
- 3.0.1: reduce data size from 24KB to 13KB
- 3.0.0: update for Unicode 11.0.0, support for Node v6+
- 2.0.0: update for Unicode 10.0.0, drop Node 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>