Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nekobato/readdirrecursive
readdirRecursively
https://github.com/nekobato/readdirrecursive
Last synced: about 13 hours ago
JSON representation
readdirRecursively
- Host: GitHub
- URL: https://github.com/nekobato/readdirrecursive
- Owner: nekobato
- Created: 2013-11-29T15:06:26.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-02-04T06:58:03.000Z (almost 11 years ago)
- Last Synced: 2024-10-28T14:59:13.785Z (18 days ago)
- Language: JavaScript
- Size: 141 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Readdir recursive
=================Readdir recursively to output files or dirs.
# How to use
require
```js
rread = require('readdir-recursive');
```### Readfiles
Callback operates each files.
```js
rread.file('./', function(file) {
console.log(file);
}
```### ReadfilesSync
Returns all files;
```js
files = rread.fileSync('./');
```### ReaddirsSync
Callback operates each dirs.
```js
rread.dir('./', function(dir) {
console.log(dir);
}
```### ReaddirsSync
Returns all dirs;
```js
dirs = rread.dirSync('./');
```