• ago.jsConverts the given date to time ago in words
    • time
    • date
    • format
  • arrayTrim.jsWill trim all falsy values from the end of an array
    • array
  • camel.jsConverts the given string to camelCase
    • string
  • capitalize.jsCapitalize the first letter of the given string
    • string
  • cherryPick.jsCherry-picks from the given array of objects, comparing top-level keys against the given compare object.
    • array
    • collection
    • object
    • find
  • clamp.jsClamp the given number between a min and max
    • math
    • number
  • cls.jsBuilds a class string from the given args
    • class
  • createElement.jsQuick and easy DOM element creation
    • dom
    • markup
  • cx.jsBuilds a class string from the given args but smaller
    • class
  • datesToDuration.jsConverts two dates into a human readable duration string
    • date
    • time
    • format
  • daysInRange.jsCalculates the number of days between two dates
    • date
  • daysToString.jsConverts the given number of days to a human-readable string (or object)
    • date
    • days
    • format
  • debounce.jsPrevent a function from being spammed
  • dp.jsSets the number of decimal places, stripping trailing zeros to nearest 10
    • number
    • format
  • equirectangularApprox.jsApproximate the distance between point A and point B, a faster but less accurate alternative to haversine for use on short distances
    • location
    • map
  • formatBytes.jsFormat the given bytes to the nearest appropriate size
    • number
    • format
  • formatDate.jsJS port of PHP's date formatter
    • date
    • format
  • formDataToJson.jsConverts the given FormData to a JSON String
    • form
  • formToObj.jsConverts the given form elements to an object
  • fuzzy.jsA tiny and blazing-fast fuzzy search
    • search
    • filter
  • getScrollParent.jsWill get the nearest scrollable parent
  • haversine.jsCalculate the distance between point A and point B
    • location
    • map
  • IntervalTimer.jsA pause-able interval timer
  • isDark.jsDetects if the given hex is dark
    • color
    • colour
    • lightness
    • darkness
    • brightness
    • luma
  • kebab.jsConverts the given string to kebab-case
    • string
  • minmax.jsClamps the number within the given range
    • math
    • number
    • min
    • max
    • clamp
  • ordinal.js
  • random.jsA collection of random generator functions
    • math
    • array
  • self-resizing-textarea-react.jsA textarea that resizes to its contents (but for react)
    • dom
  • self-resizing-textarea.htmlA textarea that resizes to its contents
    • dom
  • shiftToEnd.jsWill shift the specified number of items to the end of the array
    • array
  • shuffle.jsRandomly shuffles the given array using Durstenfeld
    • array
    • random
    • shuffle
    • mix
  • signals.jsA tiny events system
    • event
    • listen
    • emit
  • unescape.jsDecode / Unescape HTML entities
    • string
  • until.jsOutputs the given date as "X units"
    • date
    • format
  • useSwipe.jsTiny X-axis swipe handler
    • interaction
    • swipe
  • uuid.jsWill generate a random UUID v4