npm.io
0.1.1 • Published 8 years ago

de-homoglyph

Licence
MIT
Version
0.1.1
Deps
2
Size
78 kB
Vulns
0
Weekly
0
Stars
1

Number Formatter

A small library that adds sanitizes homoglyph ridden JSON and strings

Installation

npm install de-homoglyph

Usage

const deHomoglyph = require('de-homoglyph').deHomoglyph;
const badText = "Ѕuprеmе®/Thе North Fаcе® Mеtаllic Mountаin Βib";
deHomoglyph(badText);

Output should be Supreme®/The North Face® Metallic Mountain Bib