Skip to content

Commit

Permalink
Improve example.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Apr 15, 2019
1 parent b24fb92 commit 9bf1e9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const readdirp = require('readdirp');

// Use streams to achieve small RAM & CPU footprint.
// 1) Streams example with for-await. Node.js 10+ only.
for await (const entry of readdirp('.', {fileFilter: '*.js'})) {
for await (const entry of readdirp('.')) {
const {path, stat: {size}} = entry;
console.log(`${JSON.stringify({path, size})}`);
}
Expand Down

0 comments on commit 9bf1e9a

Please sign in to comment.