# sm-parsers

> MP3 and AAC parsers for StreamMachine

Latest version **0.1.2** (published 2015-07-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install sm-parsers
pnpm add sm-parsers
yarn add sm-parsers
bun add sm-parsers
```

## 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.1.2 |
| Published | 2015-07-14 |
| First published | 2015-06-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+5 in 3 direct dependencies) |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Eric Richardson |
| Maintainers | ewr |
| Keywords | streammachine, mp3, aac |

## Links

- npm: https://www.npmjs.com/package/sm-parsers
- Repository: https://github.com/StreamMachine/sm-parsers
- Homepage: https://github.com/StreamMachine/sm-parsers/
- Issues: https://github.com/StreamMachine/sm-parsers/issues
- npm.io page: https://npm.io/package/sm-parsers

## Dependencies (4)

- [uuid](https://npm.io/package/uuid.md) ~1.4.1
- [debug](https://npm.io/package/debug.md) ~2.1.2
- [strtok](https://npm.io/package/strtok.md) ~0.1.1
- [underscore](https://npm.io/package/underscore.md) ~1.7.0

## Alternatives

- [byte-size](https://npm.io/package/byte-size.md) — 2.1M weekly downloads
- [speed-limiter](https://npm.io/package/speed-limiter.md) — 16.0K weekly downloads
- [@powersync/node](https://npm.io/package/@powersync/node.md) — 10.9K weekly downloads
- [@ledgerhq/coin-cardano](https://npm.io/package/@ledgerhq/coin-cardano.md) — 1.0K weekly downloads
- [@jayesol/jayeson.lib.streamfinder](https://npm.io/package/@jayesol/jayeson.lib.streamfinder.md) — 1.0K weekly downloads

## Recent versions

- 0.1.2 (latest) — 2015-07-14
- 0.1.1 — 2015-06-30
- 0.1.0 — 2015-06-30

## README

# sm-parsers

This package provides frame parsers for MP3 and AAC audio. They are used in
[StreamMachine](https://github.com/StreamMachine/StreamMachine) for parsing
incoming audio sources.

## How to Use

Both parsers take an IO stream in and emit `frame` events for each audio frame.
Events are also emitted for `header`, `id3v1`, `id3v2` and `debug`.

Example:

```coffee
    fs = require "fs"
    Parser = (require "sm-parsers").MP3

    mp3 = fs.createReadStream("./mymp3.mp3")

    p = new Parser

    p.on "frame", (frame,header) ->
      # do something...

    mp3.pipe(p)
```

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