New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

mp3skull

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mp3skull

Search and stream MP3s from mp3skull.

latest
Source
npmnpm
Version
1.0.5
Version published
Weekly downloads
3
50%
Maintainers
1
Weekly downloads
 
Created
Source

mp3skull

Search and stream music from mp3skull.

Installation

$ npm install mp3skull

Example

var fs = require('fs'),
    mp3skull = require('mp3skull');

mp3skull('the beatles hello goodbye', function (err, tracks) {
    tracks[0].song.pipe(fs.createWriteStream('hello goodbye.mp3'));
});

API

track

{
    track: String, // the track name as it appears on the website
    direct: String, // the direct MP3 url to the track
    song: ReadableStream, // a lazy readable stream of direct
    duration: Number?, // the duration of the track in seconds
    bitrate: Number?, // the bitrate of the track in kbps
    size: Number? // the size of the track in bytes
}

Note that the fields marked with ? suffixed may be undefined for certain tracks.

mp3skull(terms, [options], done)

Search MP3 tracks on mp3skull.

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

options is an optional object that's passed into the needle requests.

done returns an array of tracks.

License

MIT

Keywords

mp3skull

FAQs

Package last updated on 19 Apr 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts