0.1.11-beta.3 • Published 5 years ago
jxdl-core
Licence
ISC
Version
0.1.11-beta.3
Deps
3
Size
18 kB
Vulns
1
Weekly
0
jxdl-core
Joox downloading module.
For a CLI version of this, check out jxdl.
Usage
const fs = require('fs');
const jxdl = require('jxdl-core');
jxdl('SrVre6FiKpG6g_XwljQDgg==')
.pipe(fs.createWriteStream('The Cranberries - Zombie.mp3'));
API
jxdl(id, uid, usk)
Attempts to download a song from the given id. Returns a readable stream.
id- can be found in.getInfoor the following url ex: 'http://www.joox.com/id/en/single/SrVre6FiKpG6g_XwljQDgg==', hereSrVre6FiKpG6g_XwljQDgg==is theiduid- If request is error find the value in your browser when request joox website. Optional.usk- If request is error find the value in your browser when request joox website. Optional.
jxdl.getInfo(url, options, callback(err, info))
Gets metainfo from a song. This is what the jxdl() function uses internally.
options can be
skip- Used to decide what number of skip song to download.name- Used to overide the name of the trending chart, playlist, album or artist name.
Install
npm install jxdl-core