Package Exports
- smule-api
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (smule-api) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
smule-api
💥 A simple API for Smule
Install
$ npm install --save smule-apiUsage
For detectingfileType :
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 extracingdirect linkto 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