Socket
Socket
Sign inDemoInstall

simple-git-hooks

Package Overview
Dependencies
0
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    simple-git-hooks

A simple, zero dependency tool for setting up git hooks for small projects


Version published
Weekly downloads
131K
decreased by-4.11%
Maintainers
1
Created
Weekly downloads
 

Package description

What is simple-git-hooks?

The simple-git-hooks npm package is designed to manage Git hooks in a straightforward and efficient manner. It allows you to easily configure and manage Git hooks using a simple configuration file, making it easier to enforce code quality and automate tasks in your development workflow.

What are simple-git-hooks's main functionalities?

Setup Git Hooks

This feature allows you to set up Git hooks by adding a configuration to your package.json file. The example shows how to run tests before committing and linting before pushing changes.

json
{
  "scripts": {
    "postinstall": "simple-git-hooks"
  },
  "simple-git-hooks": {
    "pre-commit": "npm test",
    "pre-push": "npm run lint"
  }
}

Custom Hook Scripts

You can specify custom scripts to be executed for different Git hooks. In this example, custom shell scripts are specified for the pre-commit and pre-push hooks.

json
{
  "simple-git-hooks": {
    "pre-commit": "./scripts/pre-commit.sh",
    "pre-push": "./scripts/pre-push.sh"
  }
}

Other packages similar to simple-git-hooks

Readme

Source

simple-git-hooks

A tool that lets you easily manage git hooks

Full README here: https://github.com/toplenboren/simple-git-hooks/tree/master

Keywords

FAQs

Last updated on 25 Mar 2024

Did you know?

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc