Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork6
👷 🔧 zero dependencies vanilla JavaScript utils.
License
fabiocaccamo/utils.js
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
👷 🔧 zero dependencies vanilla JavaScript utils.
This library is available throughnpm:
npm install @fabiocaccamo/utils.js
<scriptsrc=" https://cdn.jsdelivr.net/npm/@fabiocaccamo/utils.js/dist/utils.min.js"></script>
<scriptsrc="node_modules/@fabiocaccamo/utils.js/dist/utils.min.js"></script>
varutils=require("@fabiocaccamo/utils.js");
utils.array
allanycleanclonecontainsequalsflattenindexinsertmaxminpaginatereduceremovereplacerotateshufflesortsumuniqueunzipzip
utils.base64
decodeencode
utils.color
cmykToHexcmykToRgbhexToCmykhexToRgbrgbToCmykrgbToHex
utils.color.cmyk
toStringtoStringCSS
utils.color.hex
averagedistancegradientgradientMatrixinterpolateBilinearinterpolateLinearinterpolateMultilinearnearesttoCmyktoRgbtoStringtoStringCSS
utils.color.rgb
averagedistancegradientgradientMatrixinterpolateBilinearinterpolateLinearinterpolateMultilinearnearesttoCmyktoRgbtoStringtoStringCSS
utils.date
cloneformatisFutureisPastmaxmintimestamptodaytomorrowyesterdayyyyymmdd
utils.ease
backInbackInOutbackOutbounceInbounceInOutbounceOutcircularIncircularInOutcircularOutcubicIncubicInOutcubicOutelasticInelasticInOutelasticOutexponentialInexponentialInOutexponentialOutnonequadraticInquadraticInOutquadraticOutquarticInquarticInOutquarticOutquinticInquinticInOutquinticOutsexticInsexticInOutsexticOutsineInsineInOutsineOutwaveCosinewaveSawtoothwaveSine
utils.func
argsattemptbindcalldebouncedelaymemoizenooprepeatthrottleuntilvalidate
utils.geom
utils.geom.point
addanglecrossdistancedotequalsinterpolatelengthmagnitudeprojectrectrotatescalesubtracttranslate
utils.hex
decodeIntencodeInt
utils.json
decodeencode
utils.math
averageconstraincycleequalseuclideanDistancefactorialgcdlcmlerpmapnearestnormalizeproportionroundDecimalsroundToMultipleroundToNearestroundToPowersignsummation
utils.math.interpolation
bilinearlinearmultilinearscalar
utils.number
isBetweenisEvenisFloatisNegativeisOddisPositiveisPrime
utils.object
assigncleanclonedecodeBase64decodeJSONdecodeParametersencodeBase64encodeJSONencodeParametersequalsiskeypathkeyslengthmapmergesearchvalues
utils.random
argumentbitbooleancolorelementfloatindexintegermapsignstring
utils.string
containsendsWithicontainslevenshteinDistancelevenshteinSimilaritypadLeftpadRightpadZerosrenderreplacereverserotateslugifystartsWithtoConstantCasetoRandomCasetoTitleCasetoUpperCaseFirsttrimtrimLefttrimRight
utils.test
assertArrayassertBase64assertBooleanassertDateassertEqualassertErrorassertFalseassertFunctionassertJSONassertNaNassertNoneassertNotArrayassertNotBase64assertNotBooleanassertNotDateassertNotEqualassertNotErrorassertNotFunctionassertNotJSONassertNotNoneassertNotNullassertNotNumberassertNotObjectassertNotRegExpassertNotStringassertNotUndefinedassertNullassertNumberassertNumberAlmostEqualassertObjectassertRegExpassertStringassertThrowsassertTrueassertUndefined
utils.trigo
acosDegangleDegangleRadasinDegatan2DegatanDegcosDegcycleDegdegToRadfastDeghaversinehyporadToDegsinDegtanDeg
utils.type
isArrayisBase64isBooleanisDateisErrorisFunctionisJSONisNaNisNoneisNullisNumberisObjectisRegExpisStringisTypeisUndefinedof
utils.url
getParameterByNamegetParametersgetParametersDictgetParametersListgetParametersStringgetURLhasParameterisFileisHttpisHttpsisLocalhost
utils.utf8
decodeencode
utils.xml
removeNamespaces
git clone https://github.com/fabiocaccamo/utils.js.gitnpm install
npm run watch
npm run format(format code usingPrettiercode formatter, refer to.prettierrc for specific formatting options)
npm run build
Refer toSECURITY.md
Released underMIT License.
About
👷 🔧 zero dependencies vanilla JavaScript utils.
Topics
Resources
License
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Contributors4
Uh oh!
There was an error while loading.Please reload this page.