For more information, visit funcs.js.org
# via npm
$ npm install @khaidev1012/funcs --save
# via yarn
$ yarn add @khaidev1012/funcs
import { getBytes } from "@khaidev1012/funcs";
// or const { getBytes } = require('@khaidev1012/funcs');
console.log(getBytes(1024)); // 1.00 KB
duration
fetchWithTimeout
firstUpperCase
formatTimeMs
getBytes
getMemory
hexToInt
hexToRgb
intToHex
isArray
isBoolean
isFunction
isNull
isNumber
isObject
isPromise
isString
isUndefined
isUrl
percentage
randomInt
randomKey
readFiles
rgbToHex
shuffle
wait
Timer