1.5.0 • Published 3 years ago

randshortid v1.5.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

Random ShortID generator ()

Genrates a utra random shortID of custom lenght and charecters.

Installation

Install randshortId with npm

  npm instal randshortid

Usage

Install randshortId with npm

 const shortId = require("randshortId");

 let randomID = shortId() //Generates a random 6 charecter long shortId
 

Optionals

Generate ShortID of custom length

  let customLength = 10;
  let randomID = shortId(customLength); 

Generate ShortID of custom charecters

  let customLength = 10;
  let charecters = "abcdefghijklmnopqrstuwxyz0123456789";
  let randomID = shortId(customLength,charecters); 

License

MIT