UNPKG

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