Reads and parses iTunes Library.xml files to expose useful data
CoffeeScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
src
test
.gitignore
Cakefile
LICENSE
Readme.md
package.json

Readme.md

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.