comamitc / clj-beautify

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

clj-beautify

clj-beautify is a clojure formatter implemented in clojure. The formatting specification is based on the clojure.pprint/write function.

Installation

As a dependency in a clojure project:

[clj-beautify "0.1.2"]

As a standalone cli tool

git clone https://github.com/comamitc/clj-beautify.git
cd clj-beautify
lein uberjar

Usage

As a standalone cli tool:

./clj-beautify.sh clj ./path/or/file/to/scan

As a library:

(:require [clj-beautify.core :refer [format-file]])
(format-file "./path/or/file/to/scan" "clj") ;; can be "clj" or "edn"

License

Copyright © 2015 Mitch Comardo

The MIT License (MIT)

About

License:MIT License


Languages

Language:Clojure 89.3%Language:HTML 10.6%Language:Shell 0.1%