Oh heck, it's a heckin' case conversion library for PureScript
heckin
provides functions for converting between various casing conventions.
camelCase
PascalCase
snake_case
SCREAMING_SNAKE_CASE
kebab-case
Title Case
You can install heckin
with Spago:
spago install heckin
To use heckin
, import your desired casing functions and call them. All of the casing functions have a signature of String -> String
.
In the REPL:
> import Data.String.Casing
> toSnakeCase "helloWorld"
"hello_world"
> toCamelCase "hello_world"
"helloWorld"
Documentation is available on Pursuit.
This library was inspired by heck, both in name and behavior.