A CLI tool that wraps Prettier to format files in parallel, significantly speeding up formatting for large codebases. Currently at stable v1.0.2, with Prettier v3 as a peer dependency. It resolves Prettier config correctly and supports a --config flag. Differentiators from vanilla Prettier: uses worker threads for concurrency, easy to install globally, and reduces formatting time by utilizing all CPU cores.
npm install pretty-parallelVerified import paths — ran on the pinned version, not inferred.
Installs the CLI globally and formats all JS files under src/ in parallel.
Use quotes around glob patterns: pretty-parallel 'src/**/*.js'
Upgrade Node.js to v16.13.0 or later.
Upgrade to v1.0.0+ or use --config flag.
Migrate Prettier config to v3 format (e.g., use 'plugins' array).
Run 'npm install prettier@^3.0.0' in your project.
Ensure glob pattern is correct and quoted: pretty-parallel 'src/**/*.js'
Upgrade Node.js to v16.13.0 or later.