A SoundCloud 'now-playing' badge that you can just drop into browserify demos
require'soundcloud-badge'client_id: 'your API client ID'song: ''dark: truegetFonts: trueif err throw err// Play the song on// a modern browservar audio =audiosrc = srcaudioplay// Metadata related to the song// retrieved by the API.console.logdata
soundcloud-badge, these options should do these things:
client_id: your SoundCloud API client ID.
song: the SoundCloud URL for your song: using
soundcloud-resolveyou'll get the matching data for your song included.
truefor black text/icons, and
falsefor white. Defaults to
getFonts: by default, the badge will pull in fonts from Google Fonts. Set this to
falseif you'd rather it not do that.