# is-git-added

> A tool to check if files are added in a git repository

Latest version **1.0.2** (published 2017-05-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-git-added
pnpm add is-git-added
yarn add is-git-added
bun add is-git-added
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2017-05-06 |
| First published | 2017-03-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Jan Peer Stöcklmair |
| Maintainers | jpeer |
| Keywords | is, git, added, HEAD, repo, is-git, exists |

## Links

- npm: https://www.npmjs.com/package/is-git-added
- Repository: https://github.com/JPeer264/node-is-git-added
- Homepage: https://github.com/JPeer264/node-is-git-added#readme
- Issues: https://github.com/JPeer264/node-is-git-added/issues
- npm.io page: https://npm.io/package/is-git-added

## Dependencies (2)

- [execa](https://npm.io/package/execa.md) ^0.6.1
- [is-git-repository](https://npm.io/package/is-git-repository.md) ^1.0.0

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2017-05-06
- 1.0.1 — 2017-04-18
- 1.0.0 — 2017-03-20

## README

# is-git-added

[![Build Status](https://travis-ci.org/JPeer264/node-is-git-added.svg?branch=master)](https://travis-ci.org/JPeer264/node-is-git-added)
[![Coverage Status](https://coveralls.io/repos/github/JPeer264/node-is-git-added/badge.svg?branch=master)](https://coveralls.io/github/JPeer264/node-is-git-added?branch=master)

Checks synchronously if files are added in a git repository

## Installation

```sh
$ npm i is-git-added --save
```
or
```sh
$ yarn add is-git-added
```

## Usage

- `false`: Nothing is added/in the HEAD, or it is no git repository
- `true`: Changes are ready to commit. Files are added.

```js
const isGitAdded = require('is-git-added');

isGitAdded(); // true or false of process.cwd()
isGitAdded('any/git/repo'); // true or false
```

## LICENSE

MIT © [Jan Peer Stöcklmair](https://www.jpeer.at)

---
_Source: https://npm.io/package/is-git-added · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
