Files
unhomoglyph/README.md
Vitaly Puzrin 0897ce4316 first commit
2016-12-09 12:28:08 +03:00

37 lines
780 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# unhomoglyph
[![Build Status](https://img.shields.io/travis/nodeca/unhomoglyph/master.svg?style=flat)](https://travis-ci.org/nodeca/unhomoglyph)
[![NPM version](https://img.shields.io/npm/v/unhomoglyph.svg?style=flat)](https://www.npmjs.org/package/unhomoglyph)
> Replace all homoglyphs with base characters. Useful to detect similar strings.
Data source - [Recommended confusable mapping for IDN](http://www.unicode.org/Public/security/latest/confusables.txt), v8.0.0.
## Install
```bash
npm install unhomoglyph --save
```
## Example
```js
const unhomoglyph = require('unhomoglyph');
console.log(unhomoglyph('AΑА')); // => AAAAAAA
```
## Update
```bash
npm run update
```
## License
[MIT](https://github.com/nodeca/unhomoglyph/blob/master/LICENSE)