Skip to content

Commit

Permalink
Merge pull request jprichardson#256 from GeoffreyEmery/patch-1
Browse files Browse the repository at this point in the history
Updated Readme
  • Loading branch information
jprichardson authored Jul 3, 2016
2 parents 3cb4c76 + 31bbe21 commit eefd244
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -416,8 +416,9 @@ returns an object with two properties: `path` and `stats`. `path` is the full pa
Streams 1 (push) example:

```js
var fs = require('fs-extra')
var items = [] // files, directories, symlinks, etc
fse.walk(TEST_DIR)
fs.walk(TEST_DIR)
.on('data', function (item) {
items.push(item.path)
})
Expand All @@ -430,7 +431,8 @@ Streams 2 & 3 (pull) example:

```js
var items = [] // files, directories, symlinks, etc
fse.walk(TEST_DIR)
var fs = require('fs-extra')
fs.walk(TEST_DIR)
.on('readable', function () {
var item
while ((item = this.read())) {
Expand Down

0 comments on commit eefd244

Please sign in to comment.