# npm-git-info

> Retrieves git information from package that installed as NPM package.

Latest version **1.0.3** (published 2016-04-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install npm-git-info
pnpm add npm-git-info
yarn add npm-git-info
bun add npm-git-info
```

## 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.3 |
| Published | 2016-04-06 |
| First published | 2016-01-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ryunosuke SATO |
| Maintainers | tricknotes |
| Keywords | npm, package.json |

## Links

- npm: https://www.npmjs.com/package/npm-git-info
- Repository: https://github.com/tricknotes/npm-git-info
- Homepage: https://github.com/tricknotes/npm-git-info#readme
- Issues: https://github.com/tricknotes/npm-git-info/issues
- npm.io page: https://npm.io/package/npm-git-info

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.3 (latest) — 2016-04-06
- 1.0.2 — 2016-03-02
- 1.0.1 — 2016-03-01
- 1.0.0 — 2016-01-27

## README

# npm-git-info

[![Build Status](https://travis-ci.org/tricknotes/npm-git-info.svg?branch=master)](https://travis-ci.org/tricknotes/npm-git-info)

Retrieves git information from package that installed as NPM package.

## Usage

``` js
var npmGitInfo = require('npm-git-info');

var info = npmGitInfo(require('path/to/package.json'));

info.name           // will be the package name
info.version        // will be the current version
info.sha            // will be the current sha
info.abbreviatedSha // will be the first 10 chars of the current sha
info.ref            // will be the current ref specification
```

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