Registry / devops / pretty-parallel

pretty-parallel

JSON →
library1.0.2jsnpmunverified

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-parallel
INSTALL
IMPORT
SIG · PRETTY-PARALLEL
P
pretty-parallel
devopsjavascriptv1.0.2
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

pretty-parallel (CLI)
npx pretty-parallel
npm run pretty-parallel
The package is primarily used as a CLI tool; npx is recommended for execution.

Installs the CLI globally and formats all JS files under src/ in parallel.

npm install -g pretty-parallel pretty-parallel 'src/**/*.js'
pretty-parallel --version
Debug
Known issues
gotchaGlob patterns must be quoted to prevent shell expansion.
fix
Use quotes around glob patterns: pretty-parallel 'src/**/*.js'
affects: >=1.0.0
deprecatedUses worker threads; ensure Node.js version >=16.13.0.
fix
Upgrade Node.js to v16.13.0 or later.
affects: >=1.0.0
gotchaPrettier config may not be picked up if --config flag is not used in some versions.
fix
Upgrade to v1.0.0+ or use --config flag.
affects: <1.0.0
breakingPrettier v2 config files are incompatible; peer dep requires Prettier v3.
fix
Migrate Prettier config to v3 format (e.g., use 'plugins' array).
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'prettier'
Prettier not installed as peer dependency.
fix
Run 'npm install prettier@^3.0.0' in your project.
pretty-parallel: No files matched
Glob pattern did not match any files.
fix
Ensure glob pattern is correct and quoted: pretty-parallel 'src/**/*.js'
SyntaxError: Invalid or unexpected token
Using an older Node.js version <16.13.0.
fix
Upgrade Node.js to v16.13.0 or later.
Upgrade
Version history
1.0.2latest on npm
Audit
Dependencies
prettierrequiredpeer dependency v^3.0.0 for core formatting
Agent activity
10 hits · last 30 days
node
10
Resources
pretty-parallel — npm install pretty-parallel · libregistry