-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.ts
35 lines (28 loc) · 905 Bytes
/
index.ts
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
import { existsSync, mkdirSync } from "fs";
import { DIRNAME_SHEETS } from "./const";
import ODMetricsCenter from "./ODMetricsCenter";
import OpenRankDetails from "./OpenRankDetails";
import YuqueStatistics from "./YuqueStatistics";
import OSPapers from "./OSPapers";
async function main() {
if (!existsSync(DIRNAME_SHEETS)) {
mkdirSync(DIRNAME_SHEETS);
}
const center = new ODMetricsCenter();
await center.init();
center.printRecords();
center.dump2xlsx();
const openRankDetails = new OpenRankDetails();
await openRankDetails.init();
openRankDetails.printRecords();
openRankDetails.dump2xlsx();
const yuqueStatistics = new YuqueStatistics(process.env.YUQUE_SESSION);
await yuqueStatistics.init();
yuqueStatistics.print();
yuqueStatistics.dump2xlsx();
const osPapers = new OSPapers();
await osPapers.init();
osPapers.print();
osPapers.dump2xlsx();
}
main();