Skip to content
This repository has been archived by the owner on Apr 21, 2020. It is now read-only.

mica-eu/mp3zap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mp3zap

Search and download music from mp3zap.

Installation

$ npm install mp3zap

Example

var http = require('http'),
    fs = require('fs'),
    mp3zap =  require('mp3zap');

mp3zap("The Beatles Something", function (err, tracks) {
  if (err) throw err;

  var file = fs.createWriteStream(tracks[0].name + '.mp3');
  http.get(tracks[0].direct, function (res) {
    res.pipe(file);
  });
});

API

track

{
    name: String, // the track name
    artist: String, // the artist name
    duration: Number?, // the duration of the track in seconds
    direct: String, // the direct MP3 url to the track
}

mp3zap(terms, done)

Search MP3 tracks on mp3zap.

terms is expected to be a string of terms to search for.

done returns an array of tracks.

License

MIT

About

Search and download music from mp3zap

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published