UNPKG

unicode-to-plain-text

Version:

Convert fancy Unicode text to plain ASCII with smart language preservation

10 lines (9 loc) 279 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.normalizeSpaces = void 0; const normalizeSpaces = (text) => text .trim() .split(' ') .filter((part) => part.trim() !== '') .join(' '); exports.normalizeSpaces = normalizeSpaces;