UNPKG

unicode-to-plain-text

Version:

Convert fancy Unicode text to plain ASCII with smart language preservation

6 lines (5 loc) 226 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isAsciiOnly = void 0; const isAsciiOnly = (text) => [...text].every((char) => char.charCodeAt(0) <= 127); exports.isAsciiOnly = isAsciiOnly;