1.0.0 • Published 6 years ago

recursive-readir-sync v1.0.0

Weekly downloads
7
License
-
Repository
-
Last release
6 years ago

recursive-readir-sync

Build Status

Recursively list all files with absolute path in a directory and its subdirectories by the extension given. It does not list the directories themselves.

Installation

npm install recursive-readdir-sync

Usage

var recursiveReaddir = require("recursive-readdir-sync");
var files = recursiveReadir('./path')

It can also take an extension which lists only files with that extension.

var recursiveReaddir = require("recursive-readdir-sync");

// list only files with extension .md
var files = recursiveReadir('./path', '.md')

License

MIT © Ashok