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

exit-on-dirty-git

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

exit-on-dirty-git

Exit with status code (1) if something is uncommited in current tree

  • 1.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
11
decreased by-21.43%
Maintainers
1
Weekly downloads
 
Created
Source

Exit on dirty git

This module is based on dity-git and just exposes binary that will exit with status code 1 in case there're some uncommitted changes in current working directory.

Can be useful as part of prepublish hook, possibly.

Installation

If you're going to use it from npm-scripts you don't need to install it globally and could just run

npm i exit-on-dirty-git

Usage

Just call it whenever you need it. Sample usage:

  "scripts": {
    "prepublish": "npm run build && exit-on-dirty-git",
  },

Keywords

FAQs

Package last updated on 24 May 2015

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