randshortid

1.5.0 • Public • Published

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

Package Sidebar

Install

npm i randshortid

Weekly Downloads

1

Version

1.5.0

License

MIT

Unpacked Size

1.45 kB

Total Files

3

Last publish

Collaborators

  • adithyapaib