shark
Convert nim source files from camel to snake case and vice versa
Summary
| Latest Version | 1.0.0 |
|---|---|
| License | GPL-3.0-only |
| CI Status | Failing |
| Downloads | 0 |
| Last Indexed | 2026-07-21 05:26 |
Tags
Authors
- Navid M
Installation
nimble install shark
choosenim install shark
git clone https://github.com/navid-m/shark
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| shark | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Dependencies
| Package | Version | Optional |
|---|---|---|
| nim >= | 2.2.2 | No |
Source
| Repository | https://github.com/navid-m/shark |
|---|---|
| Homepage | https://github.com/navid-m/shark |
| Registry Source | nimble_official |
README
Shark
Convert snake_case to camelCase and vice versa in nim source files.
Usage
Convert to camel case:
shark -c src/shark/text.nim
Convert to snake case:
shark -s src/shark/text.nim
Use -t and -f to toggle between 2 and 4 space indentation.
Usage as a library
Use the to_camel_case, to_snake_case, toggle_indentation and process_file functions exported by the library.
Intended for nim source files but can be used on any text files.
Navid M © 2025
No warranty. Not ever.