zprint-clj v0.8.0 is a Node.js wrapper for ZPrint, a powerful Clojure source code formatter. It provides a CLI and programmatic API to format .clj, .cljs, .cljc, and .edn files. The wrapper leverages the ZPrint Clojure core and offers features like hang mode for better formatting output. It is released with moderate cadence under the MIT license. Key differentiators include native integration with npm workflows, CLI support for formatting and check modes, and configuration via .zprintrc EDN files.
npm install zprint-cljNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to use the zprint-clj API to format a Clojure file programmatically with hang mode enabled.
Update to const format = require('zprint-clj'); and call format(text, path, opts) instead of zp.format(...).Use double quotes: zprint-clj -i "./src/**/*.clj" -o ./
Always provide the absolute or relative path to the file being formatted.
Create .zprintrc in the same directory where zprint-cli is run.
Only enable when needed; for large files it may cause noticeable delay.
Run 'npm install zprint-clj' in your project directory.
Use 'const format = require('zprint-clj');' (no destructuring).Use double quotes around the glob and verify file paths exist.
No dependency data recorded yet.