itunes-lib

0.1.1 • Public • Published

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.1
    1
  • 0.1.0
    0

Package Sidebar

Install

npm i itunes-lib

Weekly Downloads

1

Version

0.1.1

License

none

Last publish

Collaborators

  • dustmason