Generate a random snowflake ID.
Install it by running the following code in the console
npm i --save ramfish-api
Generates a random ID depending on the length and whatever type you choose
const { randomID } = require("ramfish-api"); //require the package
let id = randomID({
length: 25, //Input any number as the length of the ID
type: "random" //There is 4 types to choose from, check them out down bellow
})
console.log(id) //Will output a random ID with 25 characters
Types | Output |
---|---|
Random | Outputs both numbers and letters |
Number | Outputs an ID of numbers only |
Letter | Outputs an ID of letters only |
Advanced | Outputs an ID of letters, numbers and special characters |
Generates a random ID with the characters you input
const { otherRandomID } = require("ramfish-api"); //require the package
let id = otherRandomID({
length: 25, //Input any number as the length of the ID
input: "Input_Any_Character" //Input any character to create your own custom ID
})
console.log(id) //Will output a random ID with 25 characters
If there is some of the code that doesn't work, try running npm update
to update all modules and to get the newest version. If nothing works, feel free to visit our support server where the link to it is down bellow.
If you need any help, please join our support server!