1.0.0 • Published 8 years ago

smule-api v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

smule-api

:boom: A simple API for Smule

Install

$ npm install --save smule-api

Usage

  • For detecting fileType :

url : https://smule.com/recording/titanium-acoustic/664072227_604510719

const smule = require('smule-api');

smule.type(url).then(res => {
  console.log(res);
  // => audio/mp4
});
  • For extracing direct link to download audio/video :
smule.source(url).then(res => {
  console.log(res);
  // => https://www.smule.com/redir?....Flmpz
});

API

smule.type(url)

  • Returns a promise for a string of media type avaiable.

smule.source(url)

  • Returns a promise for a string of downloadable link for given url

url

TYPE : string

Related

  • Smule - A complete media downlaoder for Smule

License

MIT © Rishi Giri