A Prettier formatter tool for projects that temporarily sets up and runs Prettier without permanently modifying your project configuration.
npm install -g prtfmRun in your project directory:
prtfmUsing npx
npx prtfmThis will:
- Temporarily add Prettier to your devDependencies
- Create a
.prettierrcconfiguration - Copy your
.gitignoreto.prettierignore(or create a default one) - Run
npm installand format your files - Clean up all temporary changes
By default, formats these file types:
- HTML
- CSS
- JavaScript
- JSON
- Markdown
Apache-2.0