0.0.3 • Published 9 years ago
cirru-writer-clj v0.0.3
Cirru Writer in Clojure
Format Cirru code in Clojure.
[cirru/writer "0.0.2"]Where's Clojure code
Code for src/ and test/ is generated via code in cirru-src, so I do not want to commit code twice.
You can still read Sepal.clj like reading Clojure.
API Usage
(ns cirru.writer-test
(:require [clojure.test :refer :all]
[cirru.writer :refer [write]]))
(write [["cirru" "ast"] ["c" ["d" "e"]]])npm usage
It's 100k after optimization since a ClojureScript runtime is inside.
npm i --save cirru-writer-cljwriter = require('cirru-writer-clj')
writer.write([['console.log', '1'], ['console.log', '2']])To build CommonJS compatible code:
boot build-commonjs
vim target/main.js # ...remove shebang manuallyLicense
Copyright © 2015 jiyinyiyong
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.