Nothing Particularly Magnificent

    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.

    Keywords

    none

    Install

    npm i itunes-db

    DownloadsWeekly Downloads

    11

    Version

    0.4.0

    License

    MIT

    Last publish

    Collaborators

    • remko