Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/derhuerst/read-audio-tags

Read tags from all common formats.
https://github.com/derhuerst/read-audio-tags

ffprobe flac id3 m4a metadata mp3 tags

Last synced: 5 days ago
JSON representation

Read tags from all common formats.

Awesome Lists containing this project

README

        

# read-audio-tags

**Read tags from all common formats.** Uses [ffprobe](http://ffmpeg.org/ffprobe.html).

[![npm version](https://img.shields.io/npm/v/read-audio-tags.svg)](https://www.npmjs.com/package/read-audio-tags)
[![build status](https://img.shields.io/travis/derhuerst/read-audio-tags.svg)](https://travis-ci.org/derhuerst/read-audio-tags)
![ISC-licensed](https://img.shields.io/github/license/derhuerst/read-audio-tags.svg)
[![chat on gitter](https://badges.gitter.im/derhuerst.svg)](https://gitter.im/derhuerst)
[![support me on Patreon](https://img.shields.io/badge/support%20me-on%20patreon-fa7664.svg)](https://patreon.com/derhuerst)

## Installing

```shell
npm install read-audio-tags
```

## Usage

```js
const readTags = require('read-audio-tags')

readTags('/path/to/audio.m4a', (err, tags) => {
if (err) console.error(err)
else console.log(tags)
})
```

## API

```js
readTags(file, [ffprobe], cb)
```

You may pass in an `ffprobe` path to use a custom executable, e.g. from [`ffprobe-static`](https://github.com/joshwnj/ffprobe-static).

## Contributing

If you have a question or have difficulties using `read-audio-tags`, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, refer to [the issues page](https://github.com/derhuerst/read-audio-tags/issues).