- Generate URL Friendly IDs
const {generateID} = require('fluwence-id');
const length = 10; // Length of your ID. Default: 6. Optional: Yes.
const url_friendly = true; // false, if you don't want it to be URL Friendly. Default: true. Optional: Yes.
const ID = generateID(length, url_friendly); // Generates the ID.
console.log(ID); // Log your ID
// wrueyry12_ - Logs Random ID
const {generateNumID} = require('fluwence-id');
const length = 10; // Length of your ID. Default: 6. Optional: Yes.
const ID = generateNumID(length); // Generates the ID.
console.log(ID); // Log your ID
// 3204826497 - Logs Random ID
- Generate Non URL Friendly IDs
const {generateID} = require('fluwence-id');
const length = 10; // Length of your ID. Default: 6. Optional: Yes.
const url_friendly = false; // true, if you want it to be URL Friendly. Default: true. Optional: Yes.
const ID = generateID(length, url_friendly); // Generates the ID.
console.log(ID); // Log your ID
// eren$_0yEa - Logs Random ID
+ Current Version: 2022.10.25
+ Last Published: 25.10.2022