|
@@ -110,11 +110,12 @@ function find(source, name) {
|
|
|
console.info(`Search for ${name}'s co-authors...`);
|
|
|
timer.start();
|
|
|
}
|
|
|
- require('./src/finder').in(source).find(name, (result) => {
|
|
|
+ const finder = require('./src/finder');
|
|
|
+ finder.in(source).find(name, (result) => {
|
|
|
if (verbose) {
|
|
|
timer.stop();
|
|
|
console.info(`${name}'s co-authors find in ${timer.time()}`);
|
|
|
}
|
|
|
- console.log('res', result);
|
|
|
+ console.info(finder.toString(name, result));
|
|
|
});
|
|
|
}
|