# ve-bgzf

> inflate BGZF format(sync)

Latest version **0.0.2** (published 2018-04-19) · 0 weekly downloads

## Install

```sh
npm install ve-bgzf
pnpm add ve-bgzf
yarn add ve-bgzf
bun add ve-bgzf
```

## 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.2 |
| Published | 2018-04-19 |
| First published | 2018-04-19 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.8.0 |
| Dependencies | 1 |
| Unpacked size | 175.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| Author | Teselagen |
| Maintainers | tnrich |
| Keywords | bgzf, bam, sam, bioinformatics, gzip, inflate, deflate, synchronous |

## Links

- npm: https://www.npmjs.com/package/ve-bgzf
- Repository: https://github.com/teselagen/bgzf
- Homepage: http://github.com/teselagen/bgzf
- Issues: http://github.com/teselagen/bgzf/issues
- npm.io page: https://npm.io/package/ve-bgzf

## Dependencies (1)

- [nan](https://npm.io/package/nan.md) ^2.0.x

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 0.0.2 (latest) — 2018-04-19

## README

Note code taken from Shin Suzuki's bgzf package. All credit to him. 

BGZF
==================
inflates BGZF written in C++

installation
----------------
```bash
$ npm install bgzf
```

usage
-----------
```js
var bgzf = require("ve-bgzf");
var bam = require("fs").readFileSync("/path/to/bamfile.bam");
var result = bgzf.inflate(bam);
var inflated = result[0]; // inflated buffer
var d_offsets = result[1]; // offsets of each BGZF
var i_offsets = result[2]; // offsets of each BGZF in the inflated buffer
var remainder = result[3]; // unparsed buffer (rightmost side of the given buffer)
```

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