
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@alexanderallen/itunes-music-library-tracks
Advanced tools
Creates a stream of tracks from an iTunes Library XML file
This module loops through iTunes Music Library XML and spits out a stream of JSON objects for each track.
There are similar npm modules that do this, however when trying to utilise them in an electon application they all failed in one way or another. I created my module using minimal dependencies so that it works without issue.
##Installation
$ npm install @johnpaulvaughan/itunes-music-library-tracks --save
##Code Example
Supply the module with a path to your xml file. It returns a node readStream of tracks.
It throws an error if something goes wrong.
let getItunesTracks = require('itunes-music-library-tracks').getItunesTracks;
let validXMLpath = 'C:\Users\JohnPaulVaughan\Music\iTunes\iTunes Music Library.xml'
let trackStream = getItunesTracks(validXMLpath)
trackStream.on('data', function(track) {
console.log(JSON.parse(track))
})
trackStream.on('error', function(err) {
console.log(err)
})
trackStream.on('end', () => {
console.log('finished parsing xml stream')
})
FAQs
Creates a stream of tracks from an iTunes Library XML file
We found that @alexanderallen/itunes-music-library-tracks demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.