Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maxdeviant/purescript-heckin
Oh heck, it's a heckin' case conversion library for PureScript
https://github.com/maxdeviant/purescript-heckin
casing purescript
Last synced: about 1 month ago
JSON representation
Oh heck, it's a heckin' case conversion library for PureScript
- Host: GitHub
- URL: https://github.com/maxdeviant/purescript-heckin
- Owner: maxdeviant
- License: mit
- Created: 2020-09-22T01:17:33.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-08-27T03:15:59.000Z (over 3 years ago)
- Last Synced: 2024-11-05T18:54:58.813Z (3 months ago)
- Topics: casing, purescript
- Language: PureScript
- Homepage:
- Size: 36.1 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# purescript-heckin
[![Pursuit](https://pursuit.purescript.org/packages/purescript-heckin/badge)](https://pursuit.purescript.org/packages/purescript-heckin)
> 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](https://github.com/purescript/spago):
```sh
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](https://pursuit.purescript.org/packages/purescript-heckin).
## Prior Art
This library was inspired by [heck](https://github.com/withoutboats/heck), both in name and behavior.