A node script that reformats a file to proper clojure formatting
JavaScript Clojure
Switch branches/tags
Nothing to show
Clone or download
snoe Merge pull request #5 from yatesco/patch-1
trivially small text upgrade
Latest commit 10bc7db Apr 30, 2018
Permalink
Failed to load latest commit information.
bin
src/node_cljfmt
.gitignore
LICENSE
README.md
package.json
project.clj
test-file.clj
test-options.edn

README.md

node-cljfmt

A small cli utility that runs https://github.com/weavejester/cljfmt on a file.

Installation

npm install -g node-cljfmt

Usage

cljfmt <filename>
cljfmt --edn=<options.edn> <filename>
cat <filename> | cljfmt --edn=<options.edn>

options.edn is an optional file containing a map of cljfmt options as laid out here: https://github.com/weavejester/cljfmt#configuration

Developing

You can build the exectuable bin/cljfmt with the following:

# lein cljsbuild once release
# chmod +x bin/cljfmt