soundcloud-badge
A SoundCloud "now playing"-type thing that you can drop into browserify demos. Makes it easy to stream from SoundCloud and ensure you're giving the appropriate credit too.
Usage
client_id: 'your API client ID'song: 'https://soundcloud.com/dylan_king/modern-housing'dark: truegetFonts: true{if err throw err// Play the song on// a modern browservar audio =audiosrc = srcaudio// Metadata related to the song// retrieved by the API.console}
Just call soundcloud-badge
, these options should do these things:
client_id
: your SoundCloud API client ID.song
: the SoundCloud URL for your song: usingsoundcloud-resolve
you'll get the matching data for your song included.dark
:true
for black text/icons, andfalse
for white. Defaults totrue
.getFonts
: by default, the badge will pull in fonts from Google Fonts. Set this tofalse
if you'd rather it not do that.