Skip to content

Implementation of function library #17

@hiddewie

Description

@hiddewie

general

  • default
  • null - coalesce
  • to / from JSON
  • to pretty JSON
  • type of value

Strings

  • length
  • substring (take, drop, shrink, pad)
  • capitalize (first character and all characters)
  • PascalCase
  • camelCase
  • snake_case
  • kebab-case
  • environment
  • split
  • reverse
  • match regex
  • replace
  • regexReplace
  • contains
  • startsWith / endsWith
  • trim
  • abbreviate
  • empty
  • escape (HTML, JSON, JS, CSS, SQL, URL/query)
  • indent
  • to array of bytes

Boolean

  • negate

Numbers

  • -
  • format to base, parse from base
  • arithmetic
  • constants
  • exp, log
  • formatting, also locale (config), percentage
  • sum / avg (only number arrays)
  • min / max
  • binary operations (and, or, xor, nand, nor, invert, shifts)
  • (ints) until to make array range

Crypto, encoding

  • hashing
  • encryption
  • base64, base48, base32
  • hex encoding

Array

  • sort for some key
  • reverse
  • join
  • length
  • first
  • last
  • take / drop
  • contains
  • empty
  • unique
  • containsAll, containsAny, containsNone
  • chunked
  • first / last, and other array methods
  • lines (split by \n, \r\n or \r)
  • zip
  • any / all / none / some

Object

  • keys
  • values
  • invert
  • length
  • containsKey
  • containsValue
  • empty
  • loop over key/value pairs

Formats

  • to/from JSON

Date/time/timezone

  • timezone
  • current time
  • current date
  • current unix epoch / timestamp
  • date/time formatting
  • duration strings & conversion

Random

  • UUID
  • integer in range
  • string with chars

URL support

  • parse / format / extract parts of URLs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions