Lists recursively files in the specified directory.
npm install list-files-in-dir --save
import {listFiles} from 'list-files-in-dir';
// As second parameter you can optionally pass the extension to filter the files
listFiles('example/path')
.then(files => {
// do what ever you want with the file paths
});
Additionally listFilesSync
is available.
npm install
npm test
- @types/node: TypeScript definitions for Node.js
- rimraf: A deep deletion module for node (like
rm -rf
) - tslint: An extensible static analysis linter for the TypeScript language
- typescript: TypeScript is a language for application scale JavaScript development
MIT