ramfish-api

2.7.0 • Public • Published

ramfish-api

Generate a random snowflake ID.

Installation

Install it by running the following code in the console

npm i --save ramfish-api

Usage

Option 1:

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
Option 2:

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

Troubleshooting

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.

Help

If you need any help, please join our support server!

Package Sidebar

Install

npm i ramfish-api

Weekly Downloads

0

Version

2.7.0

License

ISC

Unpacked Size

4.84 kB

Total Files

5

Last publish

Collaborators

  • ramoth