Registry / devops / prettier-quick

prettier-quick

JSON →
library0.0.5jsnpmunverified

A CLI tool that runs Prettier only on changed files in Git repositories, speeding up formatting by avoiding re-processing unchanged files. Version 0.0.5 is the latest and final release; the package is unmaintained and has been superseded by prettier-quick 2.x (under a different maintainer) and the official 'prettier --check' mode. It requires prettier as a peer dependency and supports Git only, with no ability to format unchanged files. Compared to lint-staged or husky integration, it offers a simpler but limited approach.

npm install prettier-quick
INSTALL
IMPORT
SIG · PRETTIER-QUICK
P
prettier-quick
devopsjavascriptv0.0.5
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.

prettier-quick
npx prettier-quick
require('prettier-quick')
CLI tool, not a library. It should be run via npx or as a dev dependency script. Do not import in code.

Installs prettier and prettier-quick, then runs the tool on staged files (Git only).

npm install --save-dev prettier prettier-quick npx prettier-quick --staged # Or add to package.json scripts: # "format": "prettier-quick"
prettier-quick --version
Debug
Known issues
deprecatedprettier-quick 0.0.5 is unmaintained. Use prettier-quick 2.x or prettier --check.
fix
Upgrade to prettier-quick@2 or migrate to prettier --check.
affects: 0.x
gotchaOnly works with Git. Other VCS like Mercurial are not supported.
fix
Use husky-hg or lint-staged with Mercurial instead.
affects: >=0.0.1
gotchaThe package does not support formatting all files; it only runs on changed files.
fix
Use prettier directly for full codebase formatting.
affects: >=0.0.1
Errors
Common errors & fixes
Error: Cannot find module 'prettier'
prettier is not installed as a peer dependency.
fix
Run 'npm install --save-dev prettier'
fatal: not a git repository (or any of the parent directories): .git
Command executed outside a Git repository.
fix
Initialize a Git repository (git init) or run from within a Git repo.
No files matching the pattern were found
No changed files match Prettier's default patterns.
fix
Ensure there are staged or modified files with supported extensions.
Upgrade
Version history
0.0.5latest on npm
Audit
Dependencies
prettierrequiredpeer dependency: prettier is required to format files.
Agent activity
15 hits · last 30 days
node
14
OpenAI (training)
1
Resources
prettier-quick — npm install prettier-quick · libregistry