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

lefthook

Package Overview
Dependencies
Maintainers
1
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lefthook - npm Package Compare versions

Comparing version 1.1.3 to 1.1.4

14

package.json
{
"name": "lefthook",
"version": "1.1.3",
"version": "1.1.4",
"description": "Simple git hooks manager",

@@ -23,8 +23,8 @@ "main": "index.js",

"optionalDependencies": {
"lefthook-darwin-arm64": "1.1.3",
"lefthook-darwin-x64": "1.1.3",
"lefthook-linux-arm64": "1.1.3",
"lefthook-linux-x64": "1.1.3",
"lefthook-windows-arm64": "1.1.3",
"lefthook-windows-x64": "1.1.3"
"lefthook-darwin-arm64": "1.1.4",
"lefthook-darwin-x64": "1.1.4",
"lefthook-linux-arm64": "1.1.4",
"lefthook-linux-x64": "1.1.4",
"lefthook-windows-arm64": "1.1.4",
"lefthook-windows-x64": "1.1.4"
},

@@ -31,0 +31,0 @@ "scripts": {

@@ -1,3 +0,4 @@

![Build Status](https://api.travis-ci.org/evilmartians/lefthook.svg?branch=master)
![Build Status](https://github.com/evilmartians/lefthook/actions/workflows/test.yml/badge.svg?branch=master)
# Lefthook

@@ -13,3 +14,3 @@

* **Fast.** It is written in Go. Can run commands in parallel.
* **Powerful.** With a few lines in the config you can check only the changed files on `pre-push` hook.
* **Powerful.** It allows to control execution and files you pass to your commands.
* **Simple.** It is single dependency-free binary which can work in any environment.

@@ -19,29 +20,37 @@

```yml
# On `git push` lefthook will run spelling and links check for all of the changed files
pre-push:
parallel: true
commands:
spelling:
files: git diff --name-only HEAD @{push}
glob: "*.md"
run: npx yaspeller {files}
check-links:
files: git diff --name-only HEAD @{push}
glob: "*.md"
run: npx markdown-link-check {files}
```
<a href="https://evilmartians.com/?utm_source=lefthook">
<img src="https://evilmartians.com/badges/sponsored-by-evil-martians.svg" alt="Sponsored by Evil Martians" width="236" height="54"></a>
## Install
With **Go** (>= 1.19):
```bash
go install github.com/evilmartians/lefthook@latest
```
With **NPM**:
```bash
npm install lefthook --save-dev
```
With **Ruby**:
```bash
gem install lefthook
```
**[Installation guide](./docs/install.md)** with more different installation instructions.
## Usage
Choose your environment:
Lefthook is easy to use. Once you configure and setup you can forget that it even exists and rely on the magic underneath.
* **[Node.js](./docs/node.md)**
* **[Ruby](./docs/ruby.md)**
* [Other environments](./docs/other.md)
See:
Then you can find all Lefthook features in [the full guide](./docs/full_guide.md) and explore [wiki](https://github.com/evilmartians/lefthook/wiki).
- [**Usage**](./docs/usage.md) of **lefthook** CLI utility.
- [**Configuration**](./docs/configuration.md) details for `lefthook.yml`
- [**Wiki**](https://github.com/evilmartians/lefthook/wiki) for other information.
- [**Discussions**](https://github.com/evilmartians/lefthook/discussions) if you want to ask a question, suggest a feature, or report a bug.

@@ -53,3 +62,3 @@ ***

* ### **Parallel execution**
If you want more speed. [Example](./docs/full_guide.md#parallel-execution)
Gives you more speed. [Example](./docs/full_guide.md#parallel-execution)

@@ -187,6 +196,11 @@ ```yml

### Guides
* [Node.js](./docs/node.md)
* [Ruby](./docs/ruby.md)
* [Other environments](./docs/other.md)
* [Full features guide](./docs/full_guide.md)
* [Install with Node.js](./docs/install.md#node)
* [Install with Ruby](./docs/install.md#ruby)
* [Install with Homebrew](./docs/install.md#homebrew)
* [Install for Debian-based Linux](./docs/install.md#deb)
* [Install for RPM-based Linux](./docs/install.md#rpm)
* [Install for Arch Linux](./docs/install.md#arch)
* [Usage](./docs/usage.md)
* [Configuration](./docs/configuration.md)
* [Troubleshooting](https://github.com/evilmartians/lefthook/wiki/Troubleshooting)

@@ -200,3 +214,3 @@

### Examples
* [Simple script](https://github.com/evilmartians/lefthook/tree/master/examples/scripts)
* [Simple script](https://github.com/evilmartians/lefthook/tree/master/examples/with_scripts)
* [Full features](https://github.com/evilmartians/lefthook/tree/master/examples/complete)

@@ -218,2 +232,1 @@

* [Lefthook for React/React Native apps](https://blog.logrocket.com/deep-dive-into-lefthook-react-native?utm_source=lefthook)
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