0.0.1 • Published 6 months ago

mp3utils v0.0.1

Weekly downloads
-
License
-
Repository
-
Last release
6 months ago

MP3Utils

Simple and dependency-free utils for reading individual MP3 frames from a buffer.

Usage

import * as mp3utils from "mp3utils";

// Read input file.
const input = "/path/to/file.mp3";
const buffer = await fs.readFile(input);

// Extract audio data.
const audio = skipID3(buffer);

// Extract audio frames.
const iter = frameIterator(buffer);
const frames = Array.from(iter);
0.0.1

6 months ago