Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/olekenneth/node-readdir-recursive-promise
Read directory and return promise or directory object with files
https://github.com/olekenneth/node-readdir-recursive-promise
javascript nodejs promise readdir
Last synced: about 2 months ago
JSON representation
Read directory and return promise or directory object with files
- Host: GitHub
- URL: https://github.com/olekenneth/node-readdir-recursive-promise
- Owner: olekenneth
- License: mit
- Created: 2015-03-07T14:28:55.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-07T14:43:42.000Z (almost 10 years ago)
- Last Synced: 2024-11-24T10:35:08.696Z (2 months ago)
- Topics: javascript, nodejs, promise, readdir
- Language: JavaScript
- Size: 133 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# About readdir-recursive-promise
Read directory and return promise or directory object with files# Install
`npm install --save readdir-recursive-promise`# Examples
## Return promise
```javascript
var rdr = require('readdir-recursive-promise');rdr.readdirAsync('directory').then(function(res) {
console.log(res);
});
```## Normal callback
```javascript
var rdr = require('readdir-recursive-promise');rdr.readdir('directory', function(err, res) {
console.log(err, res);
});
```