https://github.com/skellock/crappycase
A crappy nim package for various case conversions with strings.
https://github.com/skellock/crappycase
case-converter nim package
Last synced: about 1 year ago
JSON representation
A crappy nim package for various case conversions with strings.
- Host: GitHub
- URL: https://github.com/skellock/crappycase
- Owner: skellock
- License: mit
- Created: 2018-08-18T23:52:19.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-05-09T02:23:12.000Z (about 6 years ago)
- Last Synced: 2025-02-05T03:20:27.664Z (over 1 year ago)
- Topics: case-converter, nim, package
- Language: Nim
- Size: 4.88 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# crappycase 💩
[](https://circleci.com/gh/skellock/crappycase)
A crappy [`nim`](https://nim-lang.org) package for various case conversions with strings.
# Installing
`nimble install https://github.com/skellock/crappycase`
# Usage
```nim
import crappycase
kebab("foo bar") # foo-bar
snake("foo bar") # foo_bar
screamingSnake("foo bar") # FOO_BAR
pascal("foo bar") # FooBar
camel("foo bar") # fooBar
splitCase("foo bar") # @["foo", "bar"]
```
### For Idents Only
These conversions are mainly for idents. For example `kebab("hey* ya")` will be `hey-ya`. So this package is really only good for identifiers and such.
I'd be up for a PR to be less destructive if you need.
# License
MIT. I guess.
# Contributing
Fork it. Pull it. Patch it. Push it.
Send a PR, that should do it.