8.0.0 • Published 7 months ago

easta v8.0.0

Weekly downloads
34
License
MIT
Repository
github
Last release
7 months ago

easta

Unicode East Asian Width data for Node.js

npm version Node.js Version Support ci status dependency status License

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>

8.0.0

7 months ago

7.0.0

2 years ago

6.0.0

3 years ago

5.0.0

4 years ago

4.0.0

5 years ago

3.0.1

5 years ago

3.0.0

6 years ago

2.0.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago