1.0.4 • Published 4 months ago
rykit v1.0.4
RyKit
Installation
npm install rykit@latest
Examples
const {
getMinecraftServer,
randomItem,
randomNumber,
borsa_hisseler,
doviz,
altin,
shuffle,
chunk,
} = require("rykit");
async function main() {
//It makes your job easier by giving you a printout of the data it receives from https://api.mcsrvstat.us/.
const server = await getMinecraftServer("hypixel.net", { type: "Java" });
console.log(server);
//It gives you a random number among the 2 numbers you specify.
const randomNumberFunction = randomNumber(1, 10);
console.log(randomNumberFunction);
//It randomly selects from the array you provide.
const randomItemFunction = randomItem([
"a",
"b",
"c",
"d",
"e",
"f",
"g",
"h",
"i",
"j",
"k",
"l",
"m",
"n",
"o",
"p",
"r",
"s",
"t",
"u",
"v",
"y",
"z",
]);
console.log(randomItemFunction);
//It shuffles the order of the array you provide.
const shuffleFunction = shuffle(["a", "b", "c", "d", "e", "f"]);
console.log(shuffleFunction);
//It divides the array you provide into the number of pieces you specify.
const chunkFunction = chunk(["a", "b", "c", "d", "e", "f"], 2);
console.log(chunkFunction);
//It provides information about all stock market shares in Turkiye.
const borsa_hisselerFunction = await borsa_hisseler();
console.log(borsa_hisselerFunction);
//Foreign exchange buying and selling prices in Turkiye, etc. It gives information about.
const dovizFunction = await doviz();
console.log(dovizFunction);
//Gold buying and selling prices in Turkey etc. gives information about.
const altinFunction = await altin();
console.log(altinFunction);
}
main();
Things You Want Me to Add
Features you want me to add, etc. If so, you can reach me on discord. My Discord name is rynixelchavo
Contributing
Pull request are welcome. For major changes, please open an issue first to discuss what you would like to change.