Skip to content

A collection of vanilla js helpers in ES module format

License

Notifications You must be signed in to change notification settings

gpizzimenti/js-utils

Repository files navigation

A collection of vanilla js helpers in ES module format:

  • browserUtils.js :

    • isTouchDevice
    • isPortrait
    • isSmallFormat
    • browserData
  • collectionUtils.js:

    • intersection
    • traverse
  • colorUtils.js:

    • HexToRGB
    • HexToHSL
    • HSLToRGB
    • HSLToHex
    • invertColor
    • getColorForPositiveInteger
  • domUtils.js:

    • escapeHtml
    • unescapeHtml
    • index
    • isScrollable
  • execUtils.js:

    • nextFrame
    • softExec
    • debounce
    • throttle
  • formUtils.js:

    • serializeForm
    • serializeFormToJSON
    • deserializeQueryStringToFormData
    • escapeHtmlAttributeValue
  • geoUtils.js:

    • DecimaltoDMS
    • DMSToDecimal
    • formatDecimalToDMS
    • formatDMSToDecimal
    • haversineDistance
    • reverseCoordinates
  • textUtils.js: 1

    • urlify


    1 depends on domUtils