npm

@khaidev1012/funcs
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

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

Package Sidebar

Install

npm i @khaidev1012/funcs

Weekly Downloads

0

Version

0.1.4

License

MIT

Unpacked Size

29 kB

Total Files

7

Last publish

Collaborators

  • khaidev1012