Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Jul 19, 2026
4481166 · · Jul 19, 2026

History

10 Commits
Jun 22, 2026
Jun 19, 2026
Jun 22, 2026
Jun 18, 2026
Jun 21, 2026
Jun 18, 2026
Jul 19, 2026
Jun 22, 2026
Jun 22, 2026
Jun 22, 2026
Jun 22, 2026

Repository files navigation

chromium-formatters

The same formatters used by Chrom(ium) DevTools' "Pretty Print" feature, extracted into a standalone module for use outside of it. The supported languages are CSS, HTML, JavaScript, and JSON.

The Chromium source code was used to create this library, which ensures identical formatting behavior to (unmodified) Chromium DevTools. This allows automation of code formatting consistent with development and debugging workflows in Chromium DevTools.

npm     jsDelivr

Installation

This library has no external dependencies and has both ESM and UMD builds.

Usage

ESM (e.g. Node.js with "type": "module" or browser with