xmcd-reader

node library for reading xmcd formatted file

xmcd-reader

XMCD format file reader for node.

install

$ npm install xmcd-reader

examples

var XmcdReader = require('../lib/xmcd-reader');
 
var xmcdReader = new XmcdReader();
xmcdReader.parse('test/fixtures/example', function(error, xmcd) {
  console.log('Disc:');
  console.log('\tArtist: %s', xmcd.artist());
  console.log('\tTitle: %s', xmcd.discTitle());
 
  console.log('Tracks:');
  xmcd.tracks().forEach(function(track) {
    console.log('\t%d: %s', track.number(), track.title());
  });
});

Methods

Creates a new instance of XmcdReader.

Parses an xmcd file. callback takes error and xmcd parameters, which is an Error object and Xmcd object respectively.

Returns a disc artist.

Returns a disc title.

Returns a year.

Returns a genre.

Returns a list of tracks. An element of the list is Track object.

Returns a disc extended data.

Returns a play order.

Returns a revision.

Returns a track number.

Returns a track title.

Returns a track extended data.

License

MIT