1.0.1 • Published 4 years ago

@falieson/js-util v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

@falieson/js-util

A set of js utilities that @falieson uses in most of his projects.

Install

$ npm i -S @falieson/js-unit
$ yarn @falieson/js-unit

SUMMARY

categoryfunctions
array3
console2
date5
math15
string9
TOTAL34

Functions and Coverage

categorytopicfunctionsfunctionCounttest
arraysortsortBykey, sortObjectArray20%
arraytimestimes10%
consoleleveledConsoleconsole10%
consolepoutpout10%
datecurrentcurrMinute, currMinuteInUnix, currSecondInUnix30%
datedatedateDaysAgo, dateOffsetBy20%
matharrayaverageArr, sumArr, sumObjectArr30%
mathCounterCounter1100%
mathisPowerOf2isPowerOf210%
mathpercentpercent10%
mathrandomrandomBoolean, randomInt, randomFloat30%
mathtemperaturecelciusFromFarenheit, farenheightFromCelcius, kelvinFromCelcius, celciusFromKelvin, kelvinFromFarenheit, farenheitFromKelvin60%
stringnicebytesniceBytes10%
stringpercentCompletepercentComplete10%
stringstringdashToSpaceUppercase, pluralize, suuid, underscoreToSpaceUppercase, unixString, uppercaseFirstLetter, uuid70%
341.5%

TODOs

  • split up all the functions into their own npm modules like @falieson/js-util.times
  • 100% test coverage