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

simple-pre-commit

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-pre-commit

A simple, zero dependency tool for setting up git pre-commit hook for small projects

  • 1.0.0
  • npm
  • Socket score

Version published
Weekly downloads
531
decreased by-45.2%
Maintainers
1
Weekly downloads
 
Created
Source

simple-pre-commit

A tool, that let you set any command from package.json as a pre-commit hook

Why?

  • Lightweight
  • Easy to install
  • Dead simple to use

Usage:

  1. Install the simple-pre-commit as dev dependency npm install simple-pre-commit --save-dev

  2. Add the simple-pre-commit to your package.json. Feed it with any command you would like to run as a pre-commit hook.

    "simple-pre-commit":"npx lint-staged"

  3. Run the CLI script to update the git hook with command from package.json

    npx simple-pre-commit

Now the command from package.json is set up as executable git pre-commit hook. You can look up about git hooks here

You should run npx simple-pre-commit manually on every change of the command

FAQs

Package last updated on 14 Feb 2021

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