JSFormat Guides & Examples
Practical, no-fluff documentation for JSFormat — written by people who hit the problems first.
About JSFormat
What jsformat guarantees about the code it formats, what it cannot do without a parser, and the two companion tools for stripping comments and finding ASI traps.
JSFormat Changelog
Dated changes to jsformat: the move to the shared site template, the corrected TypeScript claim, and the new ASI checker and comment stripper.
Automatic Semicolon Insertion: The Lines That Join and the Return That Ends
The rule that decides when JavaScript adds a semicolon, the five line starts that continue the previous statement, the restricted productions, and what the ASI checker reports.
Stripping Comments From JavaScript Without Breaking It
Why a regex comment stripper corrupts code, what the tokenizer-based tool preserves, how it verifies the result, and when you should use a minifier instead.
Developer Sponsor / Partner