0.0.2 • Published 7 years ago

antispoof v0.0.2

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

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