UNPKG

390 BJavaScriptView Raw
1
2function loadModule( mod ){
3 return function(){
4 var args = Array.prototype.slice.call( arguments, 0 );
5 var module = require( './lib/' + mod + '/' + args.shift() );
6 return module.apply( module, args );
7 };
8}
9
10module.exports = {
11 spider: require( './lib/huntsman' ),
12 proxy: loadModule( 'proxy' ),
13 extension: loadModule( 'extension' ),
14 storage: loadModule( 'storage' )
15};
\No newline at end of file