JSPM

smule-api

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 8
  • Score
    100M100P100Q34463F
  • License MIT

A simple API for Smule

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-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

  • Smule - A complete media downlaoder for Smule

License

MIT © Rishi Giri