UNPKG

randshortid

Version:

A package that generates random IDs

51 lines (27 loc) 746 B
# Random ShortID generator () Genrates a utra random shortID of custom lenght and charecters. ## Installation Install randshortId with npm ```bash npm instal randshortid ``` ## Usage Install randshortId with npm ```bash const shortId = require("randshortId"); let randomID = shortId() //Generates a random 6 charecter long shortId ``` ## Optionals Generate ShortID of custom length ```bash let customLength = 10; let randomID = shortId(customLength); ``` Generate ShortID of custom charecters ```bash let customLength = 10; let charecters = "abcdefghijklmnopqrstuwxyz0123456789"; let randomID = shortId(customLength,charecters); ``` ## License [MIT](https://choosealicense.com/licenses/mit/)