smule-api

1.0.0 • Public • Published

smule-api

💥 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

Package Sidebar

Install

npm i smule-api

Weekly Downloads

6

Version

1.0.0

License

MIT

Last publish

Collaborators

  • rishi