blob: 635cc1ea6060b2db2169def37e1545c0744ac300 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
'use strict'
module.exports = {
getCrawlerByName: function(name) {
switch (name) {
case 'crawl-http': return require('./crawl-http')
case 'crawl-local': return require('./crawl-local')
case 'crawl-itunes': return require('./crawl-itunes')
case 'crawl-youtube': return require('./crawl-youtube')
case 'open-file': return require('./open-file')
default: return null
}
}
}
|