Skip to content

Commit

Permalink
update promise readme
Browse files Browse the repository at this point in the history
  • Loading branch information
davidnguyen11 committed Oct 7, 2018
1 parent 854399d commit d2357e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ recursive("some/path", ["foo.cs", ignoreFunc], function (err, files) {
You can omit the callback and return a promise instead.

```javascript
readdir("some/path").then(
var recursive = require("recursive-readdir");

recursive("some/path").then(
function(files) {
console.log("files are", files);
},
Expand Down

0 comments on commit d2357e0

Please sign in to comment.