# ebml-block

> EBML Block Parser

Latest version **1.1.2** (published 2018-09-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install ebml-block
pnpm add ebml-block
yarn add ebml-block
bun add ebml-block
```

## 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.1.2 |
| Published | 2018-09-28 |
| First published | 2016-07-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Mathias Rasmussen |
| Maintainers | mathiasvr |
| Keywords | ebml, matroska, mkv, block, simpleblock, lacing |

## Links

- npm: https://www.npmjs.com/package/ebml-block
- Repository: https://github.com/mathiasvr/ebml-block
- Homepage: https://github.com/mathiasvr/ebml-block#readme
- Issues: https://github.com/mathiasvr/ebml-block/issues
- npm.io page: https://npm.io/package/ebml-block

## Alternatives

- [@oh-my-pi/pi-natives](https://npm.io/package/@oh-my-pi/pi-natives.md) — 51.8K weekly downloads
- [@capgo/capacitor-light-sensor](https://npm.io/package/@capgo/capacitor-light-sensor.md) — 3.0K weekly downloads
- [@heyhuynhgiabuu/pi-diff](https://npm.io/package/@heyhuynhgiabuu/pi-diff.md) — 492 weekly downloads
- [@lotsa/verdant-lang-asm](https://npm.io/package/@lotsa/verdant-lang-asm.md) — 38 weekly downloads
- [new-era-syntax](https://npm.io/package/new-era-syntax.md) — 20 weekly downloads

## Recent versions

- 1.1.2 (latest) — 2018-09-28
- 1.1.1 — 2017-12-27
- 1.1.0 — 2016-08-30
- 1.0.0 — 2016-07-05

## README

# ebml-block [![npm][npm-img]][npm-url] [![dependencies][dep-img]][dep-url] [![license][lic-img]][lic-url]

[npm-img]: https://img.shields.io/npm/v/ebml-block.svg
[npm-url]: https://www.npmjs.com/package/ebml-block
[dep-img]: https://david-dm.org/mathiasvr/ebml-block.svg
[dep-url]: https://david-dm.org/mathiasvr/ebml-block
[lic-img]: http://img.shields.io/:license-MIT-blue.svg
[lic-url]: http://mvr.mit-license.org

EBML Block Parser.

Reads a buffer as a [EBML Block Structure](https://www.matroska.org/technical/specs/index.html#block_structure), supporting lacing.

## install

```
npm install ebml-block
```

## example

```javascript
const fs = require('fs')
const ebml = require('ebml')
const ebmlBlock = require('ebml-block')

var decoder = new ebml.Decoder()

decoder.on('data', function (chunk) {
  if (chunk[1].name === 'Block' || chunk[1].name === 'SimpleBlock') {
    var block = ebmlBlock(chunk[1].data)
    console.log(block)
  }
})

fs.createReadStream('media.mkv').pipe(decoder)
```

### output format
```
{ trackNumber: 1,
  timecode: 542,
  invisible: false,
  keyframe: false,
  discardable: true,
  frames: [ 
    <Buffer b4 64 1f 0e  ... > 
    <Buffer b4 64 1f 0c  ... > ] }
```

## license

MIT

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