Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
itunes-bridge
Advanced tools
A NodeJS package to control and get informations from iTunes through AppleScript
A macOS only NodeJS package to control and get informations from iTunes through AppleScript
No documentation yet, but you can look at the code of iTunes-Discord integration that is a great example of the usages possible with iTunes-bridge. There is also an example.js that you can run.
const iTunes = require('./itunes-bridge');
var currentPlayerState = iTunes.getPlayerState();
switch(currentPlayerState){
case "playing": {
var currentTrack = iTunes.getCurrentTrack();
var exampleMsg = "iTunes is currently playing " + currentTrack.name + " by " + currentTrack.artist + ' from the album "' + currentTrack.album + '". This song is ' + currentTrack.duration + 's long and will finish in ' + currentTrack.remainingTime+'s';
var exampleMsg2 = "You have " + iTunes.getPlaylistCount() + " playlists in your library and " + iTunes.getTrackCount() + " tracks!";
console.log(exampleMsg);
console.log(exampleMsg2);
break;
}
case "paused": {
var exampleMsg = 'iTunes is currently paused';
console.log(exampleMsg);
break;
}
case "stopped":
case "not running": {
var exampleMsg = "iTunes is not playing at the moment.";
console.log(exampleMsg);
break;
}
};
FAQs
A macOS and Windows NodeJS package to control and get informations from iTunes and macOS Music app through AppleScript
The npm package itunes-bridge receives a total of 29 weekly downloads. As such, itunes-bridge popularity was classified as not popular.
We found that itunes-bridge 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.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.