Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

pretty-quick

Package Overview
Dependencies
Maintainers
2
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pretty-quick

Get Pretty Quick


Version published
Weekly downloads
1.1M
increased by2.51%
Maintainers
2
Weekly downloads
 
Created

What is pretty-quick?

The pretty-quick npm package is a tool that runs Prettier, an opinionated code formatter, on your changed files. It integrates with version control systems like Git to format only the files that have been modified. This can be particularly useful as a pre-commit hook to ensure code style consistency without having to format the entire codebase on every commit.

What are pretty-quick's main functionalities?

Running on Changed Files

Run Prettier on all files that have changed since the last commit. This is the basic usage and can be integrated into pre-commit hooks.

npx pretty-quick

Running with Specific Options

Run Prettier on all changed files but filter them by a specific pattern. In this case, only JavaScript files will be formatted.

npx pretty-quick --pattern "**/*.js"

Staging Changes

Run Prettier on all staged files and re-stage the changes automatically. This is useful for ensuring that only formatted code gets committed.

npx pretty-quick --staged

Other packages similar to pretty-quick

Keywords

FAQs

Package last updated on 17 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc