2.7.0 • Published 5 years ago

ramfish-api v2.7.0

Weekly downloads
1
License
ISC
Repository
-
Last release
5 years ago

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
TypesOutput
RandomOutputs both numbers and letters
NumberOutputs an ID of numbers only
LetterOutputs an ID of letters only
AdvancedOutputs 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!

2.7.0

5 years ago

2.6.0

5 years ago

2.5.0

5 years ago

2.4.0

5 years ago

2.3.0

5 years ago

2.2.0

5 years ago

2.1.0

5 years ago

2.0.0

5 years ago

1.5.0

5 years ago

1.4.0

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.10

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago