Skip to content

Reads and parses iTunes Library.xml files to expose useful data

License

Notifications You must be signed in to change notification settings

dustMason/itunes-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Reads and parses iTunes Library.xml files to expose useful data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published