easta
TypeScript icon, indicating that this package has built-in type declarations

8.0.0 • Public • Published

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>

Readme

Keywords

Package Sidebar

Install

npm i easta

Weekly Downloads

17

Version

8.0.0

License

MIT

Unpacked Size

17.8 kB

Total Files

5

Last publish

Collaborators

  • teppeis