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

git-ensure

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-ensure - npm Package Compare versions

Comparing version 0.0.6 to 0.1.0

4

package.json
{
"name": "git-ensure",
"version": "0.0.6",
"description": "Ensure git status matches with conditions before continuing your workflow.",
"version": "0.1.0",
"description": "Ensure git status before continuing.",
"main": "dist/index.js",

@@ -6,0 +6,0 @@ "module": "dist/index.mjs",

@@ -1,9 +0,17 @@

# git-ensure
<h1 align="center">git-ensure</h1>
Ensure git status matches with conditions before continuing your workflow.
<p align="center">
Ensure git status before continuing.
</p>
<p align="center">
<a href="https://www.npmjs.com/package/git-ensure"><img src="https://img.shields.io/npm/v/git-ensure?color=a1b858&label=" alt="NPM version"></a>
</p>
![image](https://user-images.githubusercontent.com/11247099/108178559-88630080-713f-11eb-92b5-fbd47d39f202.png)
## Usage
```bash
npx git-ensure --branch main --no-head --no-behind --clean && <your-workflow>
npx git-ensure --branch main --no-head --no-behind --clean && <your-commands>
```

@@ -14,6 +22,6 @@

```bash
npx git-ensure -a && <your-workflow>
npx git-ensure -a && <your-commands>
```
If the any of the connditions fail, a `process.exit(1)` will be returned and prevent you from continue the workflow.
If any of the conditions fail, a `process.exit(1)` will be returned and prevent you from continuing the following workflows.

@@ -20,0 +28,0 @@ ## License

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