Skip to content

Commit

Permalink
[Enhancement] Added docs for the functions
Browse files Browse the repository at this point in the history
  • Loading branch information
naseif committed Sep 30, 2021
1 parent 6992809 commit 36a9130
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/getAnimeByImage.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
const fetch = require("node-fetch");
/**
*
* @param {string} imageLink
* @returns
*/

module.exports.getAnimeByImage = async (imageLink) => {
try {
Expand Down
5 changes: 5 additions & 0 deletions modules/mstoTime.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
*
* @param {number} duration
* @returns
*/
module.exports.msToTime = (duration) => {
let milliseconds = parseInt((duration % 1000) / 100),
seconds = parseInt((duration / 1000) % 60),
Expand Down
6 changes: 6 additions & 0 deletions modules/requestAPI.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
const fetch = require("node-fetch");

/**
*
* @param {string} url
* @returns
*/

module.exports.requestAPI = async (url) => {
try {
const request = await fetch(url);
Expand Down

0 comments on commit 36a9130

Please sign in to comment.