I made a tiny npm library that gets the currently playing song on the radio station Triple J. This tool works on the  command line. If you have npx installed, you can use it like so.

npx triplej

If you want to open the song in Spotify, you can use this command:

npx triplej --spotify

See https://www.npmjs.com/package/triplej for details.

A small feature that I’ve added to the library is a rarity system for the line separator.

I’ve also added a small feature that adds a rarity value to the song line separator. So every time you use the tool, you may get a rare line.