TypeScript Code Formatter
Format and beautify TypeScript (.ts/.tsx) source with real Prettier — consistent indentation, quote style, semicolons and trailing commas. Free and private in your browser; also available as a paid API.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
TypeScript Code
Indent width
2, 4 Use tabs instead of spaces
Add semicolons
Use single quotes
Trailing commas
all, es5, none Print width
40 <= x <= 200Response
Tool output
The tool's slug, echoing the {slug} in the request path.
Output-contract version for this tool.
Credits this call consumed, after any settlement refund. 0 when metering is disabled.
Credits left in the current monthly allowance, or null when metering is disabled.
Correlation id, also sent as x-request-id.