https://github.com/candid82/cljf
Clojure formatter
https://github.com/candid82/cljf
Last synced: 9 months ago
JSON representation
Clojure formatter
- Host: GitHub
- URL: https://github.com/candid82/cljf
- Owner: candid82
- License: mit
- Created: 2022-07-25T04:38:16.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-09T19:38:54.000Z (almost 2 years ago)
- Last Synced: 2025-04-03T23:02:06.695Z (9 months ago)
- Language: C
- Size: 63.5 KB
- Stars: 8
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### cljf
cljf is a simple formatter for Clojure source code. It is similar to Joker's [format mode](https://github.com/candid82/joker#format-mode), but much smaller and faster as it only does one thing: formats code.
### Building
```
gcc main.c -o cljf -O3
```
or
```
./build.sh
```
Tested on macOS. Should work on Linux.
### Usage
```
Usage: cljf [] [-o ]
Examples:
cljf - read source code from stdin and write formatted code to stdout
cljf foo.clj - format file foo.clj (override its content with formatted code)
cljf foo.clj -o bar.clj - read source code from file foo.clj and write formatted code to file bar.clj
cljf src - format all Clojure files (files with extensions *.clj, *.cljs, *.cljc, *.joke) in src directory
```