A JavaScript code formatter that formats JS files via CLI or API. Current version is 1.0.13 (last released in 2015). It uses esprima for AST parsing and offers many configuration options (indentation, spacing, quotes, semicolons, etc.) and auto-fix capabilities. However, the project is no longer actively maintained. It is similar to Prettier or JSBeautify but with a focus on configurability and auto-fixing common issues.
npm install jformatterNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage of jformatter: format a code string with custom indentation and spacing options.
Consider migrating to a modern formatter like Prettier.
Check the README for implemented options before relying on a specific feature.
Update to at least version 1.0.7.
Install esprima: npm install esprima
Fix the syntax error in your source code before formatting.
No dependency data recorded yet.