Socket
Book a DemoInstallSign in
Socket

clean-shortid

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clean-shortid

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

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

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

Keywords

id

FAQs

Package last updated on 22 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts