Checks if a character is a diacritical mark

npm install is-diacritical-mark
10 downloads in the last week
14 downloads in the last month

Checks for diacritical marks

This simple module provides 2 methods to check if a character is a diacritical mark, more specifically, accents.

This is useful for cases where you're firing events on everything a user types but you might want to ignore when he types an accent before the character the accent is applied on.

The following accents are detected:



npm install is-diacritical-mark


Takes a charCode and returns true if the code for the character matches.


Takes a character and returns true if the character matches.

npm loves you