Skip to content

Sommerfeld/short-id-gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

short-ID-Generator (short-id-gen)

Build short IDs with numbers, uppercase- and lowercase-letters.

You can pass the number of characters (exact or min+max) as param(s).

This is a quick'n'dirty-tool. It's only used for public IDs - something like shortURLs - by my side.

Install

npm install short-id-gen --save

Parameters

  • () - 0 params -> Default lenght
  • (x) - 1 param -> Exact number of characters
  • (x,y) - 2 params -> Min + max number of characters

Usage

var shortID = require('short-id-gen')
console.log(shortID.generate()) // zVe9op

About

ShortID-Generator (4-6 chars (0-9, A-Z, a-z))

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published