jprichardson / node-klaw

A Node.js file system walker with a Readable stream interface. Extracted from fs-extra.
MIT License
317 stars 41 forks source link

Add documentation with for-await-of #34

Closed ad-m closed 5 years ago

ad-m commented 5 years ago

I am not sure if tests failing come from my change. Could somebody confirm that?

RyanZim commented 5 years ago

Tests are failing because we have a linter that enforces standard.js code style on code blocks in markdown. Your code style isn't correct, but the linter is having trouble showing the error, hence why it isn't clear from the test output. Correct code style:

for await (const file of klaw('/some/dir')) {
  console.log(file)
}

Please fix, thanks!

RyanZim commented 5 years ago

Merging with broken linter tooling; will fix later.