forked from wuwb/getvip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
38 lines (33 loc) · 953 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
require('colorful').toxic();
var packageJson = require('./package.json');
var getvip = function() {
var help = function() {
console.log('Getvip tools in command line'.grey + ' ~ ' + require('./package').version.green);
console.log(' $ '.cyan + 'getvip iqy 爱奇艺|PPS');
console.log(' $ '.cyan + 'getvip xl 迅雷');
console.log(' $ '.cyan + 'getvip yk 优酷|土豆');
console.log(' $ '.cyan + 'getvip ls 乐视');
}
if (!process.argv[2]) {
help();
return;
}
var param = process.argv.slice(2)[0];
console.log();
if (param === 'iqy') {
var iqiyi = require('./lib/iqiyi');
iqiyi();
} else if (param === 'xl') {
var xunlei = require('./lib/xunlei');
xunlei();
} else if (param === 'yk') {
var youku = require('./lib/youku');
youku();
} else if (param === 'ls') {
var leshi = require('./lib/leshi');
leshi();
} else {
help();
}
}
module.exports = getvip;