1.0.0 • Published 6 years ago

clean-shortid v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

clean-shortid

This uses the excellent shortid module, and combines it with the badwords-list modules in order to generate short ID values that, where possible, don't contain offensive terms.

Installation

npm install clean-shortid

Usage

Usage is exactly the same as shortid.

var cleanShortId = require('clean-shortid');

console.log(cleanShortId.generate());
// HJfBxwQxG