New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

check-git-clean

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

check-git-clean

Check the cleanliness of a Git working directory, identifying untracked, unstaged, and uncommitted changes

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
0
Created
Source

GitHub License GitHub commit activity GitHub Actions Workflow Status GitHub Release GitHub Release Date GitHub Issues or Pull Requests GitHub watchers GitHub forks GitHub Repo stars NPM Version NPM Type Definitions NPM Downloads Node Current

check-git-clean

Check the cleanliness of a Git working directory, identifying untracked, unstaged, and uncommitted changes.

Install

Using pnpm:

pnpm add check-git-clean

Using yarn:

yarn add check-git-clean

Using npm:

npm install check-git-clean

Usage

import { checkGitClean } from 'check-git-clean'

/**
 * Check if a local git repository is clean.
 * Ignore files defined in [git-ignore-patterns](git-ignore-patterns),
 * which contains commonly git-ignored files for node project.
 * @param dir (optional). Default to `process.cwd()`
 * @return Object { `isClean`, `untracked`, `unstaged`, `uncommitted` }
 */
const { isClean, untracked, unstaged, uncommitted } = await checkGitClean()

Authors

👤 GloryWong

  • Website: https://glorywong.com
  • GitHub: @GloryWong

Show Your Support

Give a ⭐️ if this project helped you!

Keywords

git

FAQs

Package last updated on 12 Aug 2024

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