CoffeeScript formatter/beautifier inspired by gofmt, version 0.12.0 (last released 2018, no recent updates). It formats CoffeeScript code with options for indent style and size. Differentiates via golang-like philosophy but limited adoption and potential bugs in edge cases. Supports CLI and JS API. Note: CoffeeScript itself is deprecated.
npm install coffee-fmtNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Reads CoffeeScript file, formats with 2-space indent, outputs to stdout.
Use try-catch block as shown in the API example.
Use a modern language instead.
Set indent_size only with space indent_style.
Set --debug=false or redirect stderr separately.
Use const fmt = require('coffee-fmt'); then fmt.format(...)Run 'npm install coffee-fmt' in your project.
Validate your CoffeeScript code before formatting.
No dependency data recorded yet.