Registry / devops / coffee-formatter

coffee-formatter

JSON →
library0.1.2jsnpmunverified

A CoffeeScript formatter that auto-formats CoffeeScript source files. Version 0.1.2 is the latest release, but the project has been abandoned since 2014 with no updates. It requires Node.js and CoffeeScript to run, but has no other dependencies. The formatter is written in Literate CoffeeScript and can be executed via Node or the CoffeeScript CLI. It provides basic formatting capabilities but lacks configuration options and modern features found in alternatives like decaffeinate or Prettier. The project is deprecated due to inactivity and the decline of CoffeeScript usage.

npm install coffee-formatter
INSTALL
IMPORT
SIG · COFFEE-FORMATTER
C
coffee-formatter
devopsjavascriptv0.1.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Installs the package globally and formats a CoffeeScript file using Node or CoffeeScript CLI.

npm install -g coffee-formatter@0.1.2 # Then format a CoffeeScript file node formatter.js sample/example.coffee # Or using the coffee command coffee formatter.litcoffee sample/example.coffee
Debug
Known issues
deprecatedProject is abandoned since 2014. No updates or bug fixes.
fix
Use alternative formatters like decaffeinate or Prettier with CoffeeScript plugin.
affects: >=0.0.0
breakingSyntax errors in input CoffeeScript may cause cryptic errors or malformed output.
fix
Ensure input files are valid CoffeeScript before formatting.
affects: >=0.0.0
gotchaThe formatter might change indentation inconsistently across different CoffeeScript versions.
fix
Always review formatted output for correctness.
affects: >=0.0.0
Errors
Common errors & fixes
Error: Cannot find module 'coffee-script'
CoffeeScript package not installed
fix
npm install coffee-script
ReferenceError: coffee is not defined
Running formatter without Coffee Script installed globally or locally
fix
npm install -g coffee-script
Upgrade
Version history
0.1.2latest on npm
Audit
Dependencies
coffeescriptrequiredRuntime dependency to parse and compile CoffeeScript files
Agent activity
2 hits · last 30 days
node
2
Resources
coffee-formatter — npm install coffee-formatter · libregistry