1.15.0 • Published 10 months ago
@hyoretsu/utils v1.15.0
List of utility functions:
- capitalize
- clamp - CSS-like clamp()
- degreesToRadians
- directLink - supports GDrive
- distanceBetweenCoordinates
- divmod
- fixNumber (that .00000000001 error)
- formatPhoneNumber (currently supports BR and US numbers)
- haversine and archaversine
- hexToHsl
- hexToRgba (RGB and RGBA)
- isEven
- isOdd
- isPowerOf
- JsonFixBigInt
- measureText – Measures how many pixels of height a given text will need (useful for dynamic universal animations)
- onlyUnique (filter helper)
- random (Python-like)
- randomId
- range
- round (More precise than Math.round)
- sleep (async)
- sum
- swap (in-place)
- timeConversion - Converts values from one time unit to another
- titleCase
- validHex
- zeroOrOne
1.15.0
10 months ago
1.14.0
11 months ago
1.12.2
1 year ago
1.13.0
11 months ago
1.12.1
1 year ago
1.12.0
1 year ago
1.11.1
1 year ago
1.11.0
1 year ago
1.9.1
1 year ago
1.9.0
1 year ago
1.10.1
1 year ago
1.10.0
1 year ago
1.8.0
2 years ago
1.7.3
2 years ago
1.7.2
2 years ago
1.4.5
2 years ago
1.7.1
2 years ago
1.4.4
2 years ago
1.7.0
2 years ago
1.4.3
2 years ago
1.6.0
2 years ago
1.5.1
2 years ago
1.4.2
2 years ago
1.5.0
2 years ago
1.4.1
2 years ago
1.4.0
2 years ago
1.3.1
2 years ago
1.3.0
2 years ago
1.2.0
2 years ago
1.1.0
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago