Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 646 Bytes

README.md

File metadata and controls

22 lines (17 loc) · 646 Bytes

unicode-tables

This is a set of Unicode category tables based off of the unicode module, but it only contains the character values themselves, not all of the extra information. Therefor it is much smaller.

Usage

It is imported in the same way as the unicode module.

require('unicode-tables/category/So');

or

require('unicode-tables/category').So;

Example

Check if a character is a non-spacing mark:

const nonSpacing = new Set(require('unicode-tables/category/Mn'));
nonSpacing.has('\u0300'); // true