Skip to content

dotCase

dotCase(string) → string · String

Convert a string to dot.case (lowercase words separated by dots).

  • string (required): the string to convert
utlx
dotCase("hello world")        // "hello.world"
dotCase("camelCase")          // "camel.case"
dotCase("SCREAMING_SNAKE")    // "screaming.snake"

Released under AGPL-3.0.