How to use this developer tool
- Paste Node.js source, JSON, or package metadata.
- Select the code type or use Auto Detect.
- Choose indentation and grouping options.
- Run the formatter and review the output before replacing project files.
Format Node.js source and configuration files directly in the browser. The formatter supports JavaScript, TypeScript, CommonJS, ES modules, package.json, tsconfig, and related JSON files while preserving shebangs, comments, template literals, and common Node-specific syntax.
The formatter normalizes Node-specific source and JSON structure using conservative browser-side rules.
Complex JavaScript and TypeScript constructs should be checked with a project formatter after browser-side formatting.
Compact CommonJS source is expanded into readable functions with normalized braces, spacing, requires, and exports.
Paste the source, select Auto Detect or a module type, choose indentation, and run the formatter.
Yes. Valid package.json data is parsed and emitted as formatted JSON.
Yes. Both require/module.exports and import/export source can be formatted.
Yes. Common shebang lines are preserved at the beginning of CLI files.
It is designed for conservative formatting, but complex code should always be reviewed and tested.
| Area | Coverage |
|---|---|
| JavaScript | CommonJS and ESM source |
| TypeScript | Node-oriented TS source |
| JSON | package and project configuration |
| CLI | Shebang-preserving scripts |