# git-objectify-pack

> transform offset+data bits into full git objects

Latest version **0.0.12** (published 2022-06-18) · 0 weekly downloads

## Install

```sh
npm install git-objectify-pack
pnpm add git-objectify-pack
yarn add git-objectify-pack
bun add git-objectify-pack
```

## 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.12 |
| Published | 2022-06-18 |
| First published | 2013-04-04 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Chris Dickinson |
| Maintainers | chrisdickinson |

## Links

- npm: https://www.npmjs.com/package/git-objectify-pack
- Repository: https://github.com/chrisdickinson/git-objectify-pack
- npm.io page: https://npm.io/package/git-objectify-pack

## Dependencies (5)

- [bops](https://npm.io/package/bops.md) ~0.0.6
- [through](https://npm.io/package/through.md) ~2.2.7
- [git-to-js](https://npm.io/package/git-to-js.md) 0.0.7
- [git-apply-delta](https://npm.io/package/git-apply-delta.md) 0.0.7
- [git-object-hash](https://npm.io/package/git-object-hash.md) 0.0.8

## Recent versions

- 0.0.12 (latest) — 2013-05-27
- 0.0.11 — 2013-05-27
- 0.0.10 — 2013-05-22
- 0.0.9 — 2013-05-10
- 0.0.8 — 2013-05-10
- 0.0.7 — 2013-05-06
- 0.0.6 — 2013-05-05
- 0.0.5 — 2013-05-05
- 0.0.4 — 2013-05-04
- 0.0.3 — 2013-04-04
- 0.0.2 — 2013-04-04
- 0.0.1 — 2013-04-04

## README

# git-objectify-pack

transform metadata objects emitted from [git-list-pack](http://npm.im/git-list-pack) into full-on git objects.

```javascript

var fs = require('fs')
  , list = require('git-list-pack')
  , objectify = require('git-objectify-pack')

fs.createReadStream('path/to/packfile')
  .pipe(list())
  .pipe(objectify(find))

function find(oid, ready) {
  // for finding ref-delta objects that might
  // be outside of the current packfile
  return ready(null, referencedObject | null)
}

```

## API

#### objectify(find) -> r/w stream of objects.

Create a r/w stream suitable for piping `git-list-pack` streams into.

Emits [git objects](http://npm.im/git-to-js) with attached string hashes.

## License

MIT

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