itunes-db

0.4.0 • Public • Published

node-itunes-db: Fast iTunes XML Parser

An iTunes XML library database parser, designed for large libraries.

Installation

npm install itunes-db --save

Example

var itunesDB = require("itunes-db")
    .loadSync("/Users/remko/Music/iTunes/iTunes Music Library.xml");

console.log("Tracks:", itunesDB.tracks);
console.log("Playlists:", itunesDB.playlists);

API

load(db, cb)

Loads the given iTunes database asynchronously.

Warning: This function currently blocks the main thread, and isn't therefore really async.

  • db - string
    The path to the iTunes XML file to load.

  • cb - string
    The path to the iTunes XML file to load.

loadSync(db)

Loads the given iTunes database synchronously.

  • db - string
    The path to the iTunes XML file to load.

Readme

Keywords

none

Package Sidebar

Install

npm i itunes-db

Weekly Downloads

0

Version

0.4.0

License

MIT

Last publish

Collaborators

  • remko