Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 580 Bytes

README.md

File metadata and controls

30 lines (22 loc) · 580 Bytes

music-metadata

Parsing metadata of a music file. Data gets used in the following order:

  • ID3 v2
  • ID3 v1
  • file name parsing

Install

npm install https://github.com/peermusic/music-metadata

Usage

var musicMetadata = require('music-metadata')
musicMetadata(file, function (tags) {
  console.log(tags) // "tags" is an object with title, artist, album, track and year
})

For reference see the Browserify Handbook.

Tests for parsing

npm install -g mocha
mocha