Pipris is an extensible MPRIS scrobbler written with Deno.
at main 12 lines 412 B view raw
1/** 2 * Example module - logs track data to the console. 3 * @param {object} data 4 * @param {Array<{artistName: string}>} data.artists 5 * @param {string} data.trackName 6 * @param {string} data.playedTime - ISO 8601 timestamp 7 * @param {string} data.releaseName 8 * @param {string} data.expiry - ISO 8601 timestamp 9 */ 10export function onData(data) { 11 console.log("[example]", JSON.stringify(data, null, 2)); 12}