Package

purescript-heckin

Repository
maxdeviant/purescript-heckin
License
MIT
Uploaded by
maxdeviant
Published on
2021-08-27T03:15:42Z

Pursuit

Oh heck, it's a heckin' case conversion library for PureScript

heckin provides functions for converting between various casing conventions.

Supported Casing Conventions

  • camelCase
  • PascalCase
  • snake_case
  • SCREAMING_SNAKE_CASE
  • kebab-case
  • Title Case

Installation

You can install heckin with Spago:

spago install heckin

Usage

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

Documentation is available on Pursuit.

Prior Art

This library was inspired by heck, both in name and behavior.