@hyoretsu/utils
TypeScript icon, indicating that this package has built-in type declarations

1.11.1 • Public • Published

List of utility functions:

  • capitalize
  • clamp - CSS-like clamp()
  • degreesToRadians
  • directLink - supports GDrive
  • distanceBetweenCoordinates
  • fixNumber (that .00000000001 error)
  • formatPhoneNumber (currently supports BR and US numbers)
  • haversine and archaversine
  • hexToHsl
  • hexToRgba (RGB and RGBA)
  • isEven
  • isOdd
  • isPowerOf
  • isReactJs
  • isReactNative
  • JsonFixBigInt
  • measureText – Measures how many pixels of height a given text will need (useful for dynamic universal animations)
  • random (Python-like)
  • randomId
  • range
  • reactJsOrNative
  • round (More precise than Math.round)
  • sleep (async)
  • swap (in-place)
  • timeConversion - Converts values from one time unit to another
  • titleCase
  • validHex
  • zeroOrOne

Readme

Keywords

none

Package Sidebar

Install

npm i @hyoretsu/utils

Weekly Downloads

95

Version

1.11.1

License

MIT

Unpacked Size

51.9 kB

Total Files

137

Last publish

Collaborators

  • hyoretsu