first commit

This commit is contained in:
Vitaly Puzrin
2016-12-09 12:12:16 +03:00
commit 0897ce4316
12 changed files with 6417 additions and 0 deletions

36
README.md Normal file
View File

@@ -0,0 +1,36 @@
# 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)