@khaidev1012/funcs

A Package that synthesis of utility functions


Keywords
functions, utility, utils, tools, helpers
License
MIT
Install
npm install @khaidev1012/funcs@0.1.4

Documentation

funcs

For more information, visit funcs.js.org

libraries dependency status libraries sourcerank Release date npm license

Install

NPM version NPM bundle size npm download

# via npm
$ npm install @khaidev1012/funcs --save

# via yarn
$ yarn add @khaidev1012/funcs

Usage

import { getBytes } from "@khaidev1012/funcs";
// or const { getBytes } = require('@khaidev1012/funcs');

console.log(getBytes(1024)); // 1.00 KB

Functions

  • 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

Classes

  • Timer