Registry / devops / prettier-cm

prettier-cm

JSON →
library1.0.8jsnpmunverified

prettier-cm is a lightweight CLI tool (v1.0.8) that quickly sets up Prettier configuration in any project by generating .prettierrc and .prettierignore files. It automates the repetitive task of manually creating configuration files with sensible defaults (4-space indentation, single quotes, semicolons, trailing commas, JSX support, common ignores). Suitable for full-stack projects. Unlike manual setup, it is a one-command solution that can be run via npx without installation. The project is maintained on GitHub and follows an MIT license.

npm install prettier-cm
INSTALL
IMPORT
SIG · PRETTIER-CM
P
prettier-cm
devopsjavascriptv1.0.8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

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

prettier-cm
npx prettier-cm
npm install prettier-cm --save
CLI tool used via npx or global install; no programmatic API.

Generate Prettier config and format a project using prettier-cm and Prettier.

npx prettier-cm npm install -D prettier npx prettier --write .
Debug
Known issues
gotchaprettier-cm does not install Prettier itself; you must install it separately.
fix
Run 'npm install -D prettier' after using prettier-cm.
affects: >=0.0.0
gotchaRunning prettier-cm will overwrite existing .prettierrc and .prettierignore files without warning.
fix
Backup existing files before running the command.
affects: >=0.0.0
gotchaConfiguration is opinionated; review generated files before committing.
fix
Edit .prettierrc to match your project's style preferences.
affects: >=0.0.0
Errors
Common errors & fixes
bash: prettier-cm: command not found
prettier-cm not installed globally or not run via npx.
fix
Use 'npx prettier-cm' instead.
Error: Cannot find module 'prettier'
Prettier not installed in the project.
fix
Run 'npm install -D prettier'.
Upgrade
Version history
1.0.8latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
prettier-cm — npm install prettier-cm · libregistry