UNPKG

391 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
12 }
13
14 next();
15});
16
17
18walker.on('end', () => {
19
20
21 // console.log(result);
22});
\No newline at end of file