1 | const fs = require('fs');
|
2 | const walk = require('walk');
|
3 | const config = require('./config');
|
4 |
|
5 |
|
6 | const walker = walk.walk(config.root);
|
7 | walker.on('file', function (root, fileStats, next) {
|
8 | const ext = path.extname(fileStats.name);
|
9 | const basename = fileStats.name;
|
10 | if (ext === '.md') {
|
11 |
|
12 | }
|
13 |
|
14 | next();
|
15 | });
|
16 |
|
17 |
|
18 | walker.on('end', () => {
|
19 |
|
20 |
|
21 | // console.log(result);
|
22 | }); |
\ | No newline at end of file |