itunes-lib

Parses iTunes playlist XML files

npm install itunes-lib
4 downloads in the last week
8 downloads in the last month

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.

npm loves you