Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including sounddrop with all npm packages installed. Try it out:

var sounddrop = require("sounddrop")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

sounddrop v1.0.2

Fetch any SoundCloud url.

sounddrop

Standard - JavaScript Style Guide

Fetch any SoundCloud url.

NPM module packaging of diracdelta's demo. Full credit goes to them.

sounds are cool please give money to artists

install

npm install --save sounddrop

A standalone Browserify build is available in the dist folder.

Usage


var drop = new SoundDrop({
  clientID: 'xxxxxxxxxxxxxx' // See https://auth0.com/docs/connections/social/soundcloud
})

drop.fetch('https://soundcloud.com/diracdeltas/pu3elibqww9b', function (streamURL, artist) {
  // streamURL is the direct URL of the mp3 file
  // artist is the name of the artist you should support :)
})

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free