Skip to content

Commit 9330326

Browse files
committed
define size in blog example
1 parent 6295970 commit 9330326

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

readme.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ const glob = require('glob');
7272

7373
glob('./*', (err, files) => {
7474
// files is an array of filenames.
75-
for(let file of files) {
75+
for (let file of files) {
76+
const size = fileBytes(file);
7677
console.log(`"${file}" is ${size} bytes`);
7778
}
7879
});

0 commit comments

Comments
 (0)