Skip to content

christophe77/mp3-finder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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...."
        }
    ]
}

About

Search the web for mp3 from a given query string.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published