JSPM

mp3-finder

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7
  • Score
    100M100P100Q40317F
  • License MIT

Search the web for mp3 from a given query string.

Package Exports

  • mp3-finder
  • mp3-finder/dist/cjs/index.js
  • mp3-finder/dist/esm/index.js

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 (mp3-finder) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

mp3-finder

Search the web for mp3 from a given query string. Written with typescript and working server and browser side.

Installation

yarn add mp3-finder
// or
npm i mp3-finder

Usage

const mp3Finder = require("mp3-finder").default;

const { findMp3 } = mp3Finder;

async function searchSong() {
    const results = await findMp3("enter sandman");
    console.log(results)
}

searchSong();

the return is an object with a results array :

{
    results : [
        {
            id: 0,
            url: "http://wwwwwwwwwwwwwwwwww...."
        },
        {
            id: 1,
            url: "http://wwwwwwwwwwwwwwwwww...."
        }
    ]
}