# list-files-in-dir

> Lists recursively files in the specified directory.

Latest version **0.1.5** (published 2018-09-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install list-files-in-dir
pnpm add list-files-in-dir
yarn add list-files-in-dir
bun add list-files-in-dir
```

## Health

**Score 40/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.1.5 |
| Published | 2018-09-03 |
| First published | 2017-05-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Joge |
| Maintainers | joge |
| Keywords | list, files |

## Links

- npm: https://www.npmjs.com/package/list-files-in-dir
- Repository: https://github.com/Joge97/list-files-in-dir
- Homepage: https://github.com/Joge97/list-files-in-dir#readme
- Issues: https://github.com/Joge97/list-files-in-dir/issues
- npm.io page: https://npm.io/package/list-files-in-dir

## Dependencies (1)

- [@types/node](https://npm.io/package/@types/node.md) ^10.0.0

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 0.1.5 (latest) — 2018-09-03
- 0.1.4 — 2017-05-23
- 0.1.3 — 2017-05-18
- 0.1.2 — 2017-05-18
- 0.1.1 — 2017-05-16
- 0.1.0 — 2017-05-15

## README

# list-files-in-dir

Lists recursively files in the specified directory.

## Installation

```sh
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

```sh
npm install
npm test
```

## Dependencies

- [@types/node](https://www.github.com/DefinitelyTyped/DefinitelyTyped.git): TypeScript definitions for Node.js

## Dev Dependencies

- [rimraf](): A deep deletion module for node (like `rm -rf`)
- [tslint](https://github.com/palantir/tslint): An extensible static analysis linter for the TypeScript language
- [typescript](https://github.com/Microsoft/TypeScript): TypeScript is a language for application scale JavaScript development


## License

MIT

---
_Source: https://npm.io/package/list-files-in-dir · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
