Human-tolerant ID generator for NodeJS and the browser
xid
uses the URL-friendly Crockford Base32 encoding with CRC-8 checksum to generate random identifiers that are tolerant to inaccurate human inputs.
Install
$ npm install --save xid
Usage
var xid = ;var id = xid; // do something with generated ID... // validate user inputtry xid; catch err // id is invalid // normalize user inputtry id = xid; catch err // id is invalid
License
Apache 2.0