Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

clean-shortid

simonprickett8MIT1.0.0

Uses shortid to generate short ID values and attempts to make sure they don't contain offensive language.

id, shortid, badword-filter, uuid, short, tinyid, bitly, shorten

readme

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