list-files-in-dir
TypeScript icon, indicating that this package has built-in type declarations

0.1.5 • Public • Published

list-files-in-dir

Lists recursively files in the specified directory.

Installation

npm install list-files-in-dir --save

Usage

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.

Tests

npm install
npm test

Dependencies

Dev Dependencies

  • 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

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i list-files-in-dir

Weekly Downloads

191

Version

0.1.5

License

MIT

Unpacked Size

4.59 kB

Total Files

4

Last publish

Collaborators

  • joge