antispoof

0.0.2 • Public • Published

antispoof

Build Status Coverage Status npm version

A library that tries to check whether the username for your new signup is possibly trying to spoof another user.

Checking for homoglyphs is complicated, so this module takes the approach of simply disallowing mixed-scripts: so it disallows, for example, mixing Greek and Latin scripts.

Usage

var antispoof = require('antispoof')
antispoof.isValid('AzureDiamond') // true
antispoof.isValid('ΑzureDiаmοnd') // false
                // ^     ^^ ^   homoglyphs

Package Sidebar

Install

npm i antispoof

Weekly Downloads

3

Version

0.0.2

License

ISC

Last publish

Collaborators

  • zuzak