Streaming parser for the contents of iTunes Library XML files
Streaming parser for the contents of iTunes Library XML files. Supports retrieving the complete library track listing, but playlist listings aren't complete yet.
Should be useful for either ditching iTunes programatically or at least mucking around with its data.
Creates a transform stream which takes raw XML data and spits out JSON objects for each discovered track.
var itunes = require'itunes-library-stream'var userhome = require'userhome'var path = require'path'var fs = require'fs'// If you're not running OSX, update this// to point to the correct file in your// iTunes Library folder.var location = pathresolveuserhome'Music/iTunes/iTunes Music Library.xml'fscreateReadStreamlocationpipeitunescreateTrackStreamon'data'console.log'[' + dataArtist + '] ' + dataName
MIT. See LICENSE.md for details.