Parsing metadata of a music file. Data gets used in the following order:
- ID3 v2
- ID3 v1
- file name parsing
npm install https://github.com/peermusic/music-metadata
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.
npm install -g mocha
mocha