Skip to content

simonprickett/clean-shortid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Uses shortid but tries to keep generated IDs from containing profanity.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published