itunes-lib
v0.1.1
Published
Parses iTunes playlist XML files
Downloads
2
Readme
itunes-lib
Reads and parses an iTunes playlist XML file to expose useful data within.
Installation
npm install itunes-lib
Usage
ituneslib = require('itunes-lib');
playlist = new ituneslib('/path/to/playlist.xml');
playlist.size(); // 2
playlist.songs(); // output below
[
{
title: "Shell Games",
artist: "Bright Eyes",
album: "The People's Key",
play_count: 2,
date_added: _, // Date
play_date: _ // Date
},
{
title: "Blackout",
artist: "Anna Calvi",
album: "Anna Calvi",
play_count: 6,
date_added: _, // Date
play_date: _ // Date
}
]
Development
Run the test suite with cake test
, and build it for distribution with cake build
. Made for node >= 0.8.0.