# git-packed-ref-parse

> streaming git packed-ref parser

Latest version **0.0.0** (published 2013-03-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install git-packed-ref-parse
pnpm add git-packed-ref-parse
yarn add git-packed-ref-parse
bun add git-packed-ref-parse
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.0 |
| Published | 2013-03-20 |
| First published | 2013-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 | Chris Dickinson |
| Maintainers | chrisdickinson |
| Keywords | git, packed-ref, parser, stream |

## Links

- npm: https://www.npmjs.com/package/git-packed-ref-parse
- Repository: https://github.com/chrisdickinson/git-packed-ref-parse
- npm.io page: https://npm.io/package/git-packed-ref-parse

## Dependencies (2)

- [through](https://npm.io/package/through.md) ~2.2.7
- [line-stream](https://npm.io/package/line-stream.md) 0.0.0

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 0.0.0 (latest) — 2013-03-20

## README

# git-packed-ref-parse

parse packed-ref file streams into javascript objects.

```javascript
// after git gc in a git repo
var fs = require('fs')
  , parse = require('git-packed-ref-parse')

fs.createReadStream('.git/packed-refs')
  .pipe(parse())
  .on('data', console.log)

``` 

## API

#### parse() -> parse stream

create a parse stream. when piped to, it will set
the encoding of the source stream to `utf8`.

#### data event

the parse stream will emit data events for each
ref contained in the `packed-ref` file.

they take this form:

```javascript
{ "hash": "40 character git hash"
, "name": "ref name"
, "commit": null | "40 character git hash" }
```

`commit` will usually be `null`, except for annotated
`tag` references.

## License

MIT

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