How denysdovhan/wtfjs works
WTFJS is a JavaScript quirks handbook, also delivered as a pager-based CLI. The user selects the default English manuscript or a language translation; the CLI checks that file, reads it, optionally prepends an update notice, renders its Markdown, and pipes the result to the configured pager. The README additionally presents the collection as educational explanations and a reference for JavaScript behavior. The graph shows the CLI workflow and manuscript capabilities; source evidence is limited to the README and the two indexed excerpts.
Main entry points: wtfjs.js Language selection · README.md English manuscript · README-pt-br.md Translated manuscripts
Components 13
CLI Reader
- CLI entry
wtfjs.js - Language selection
wtfjs.js - Manuscript check
wtfjs.js - File stream
wtfjs.js - Update notice
wtfjs.js - Markdown rendering
wtfjs.js - Pager output
wtfjs.js
Handbook Content
- English manuscript
README.md - Translated manuscripts
README-pt-br.md - JavaScript examples
README.md - Quirk explanations
README.md - Learning reference
README.md
Other components
- Reader
Connections 13
- Reader → CLI entry: runs
README.md - CLI entry → Language selection: parses options
wtfjs.js - Language selection → Manuscript check: selects file
wtfjs.js - Manuscript check → File stream: checks then reads
wtfjs.js - Language selection → English manuscript: defaults to
wtfjs.js - Language selection → Translated manuscripts: selects language
wtfjs.js - File stream → Update notice: checks update
wtfjs.js - File stream → Markdown rendering: renders content
wtfjs.js - Update notice → Pager output: precedes output
wtfjs.js - Markdown rendering → Pager output: pipes result
wtfjs.js - English manuscript → JavaScript examples: collects
README.md - English manuscript → Quirk explanations: explains
README.md - English manuscript → Learning reference: serves as
README.md