Typescript-formatter is a command-line tool and library for formatting TypeScript code according to specific style rules. It leverages the TypeScript compiler API to parse, analyze and rewrite code, ensuring consistent formatting and readability. This helps maintain a uniform codebase across projects, reducing stylistic inconsistencies and improving collaboration. Integrates easily into build processes using its CLI, and can be extended with custom rules.