# directory-files

> Recursively get full absolute paths of all files in a given directory

Latest version **1.0.0** (published 2016-04-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install directory-files
pnpm add directory-files
yarn add directory-files
bun add directory-files
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-04-18 |
| First published | 2016-04-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Alexey Gorokhov |
| Maintainers | agorokhov |
| Keywords | directory, files |

## Links

- npm: https://www.npmjs.com/package/directory-files
- Repository: https://github.com/AlexeyGorokhov/directory-files
- Issues: https://github.com/AlexeyGorokhov/directory-files/issues
- npm.io page: https://npm.io/package/directory-files

## 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

- 1.0.0 (latest) — 2016-04-18

## README

# directory-files

Recursively get full absolute paths of all files in a given directory

[![js-semistandard-style](https://img.shields.io/badge/code%20style-semistandard-brightgreen.svg?style=flat-square)](https://github.com/Flet/semistandard)

## Installation

```bash
$ npm install directory-files --save
```

## Usage

```javascript
const path = require('path');
const directoryFiles = require('directory-files');

const dir = path.join(__dirname, 'some/folder');
const fileNames = directoryFiles(dir);
for (const fileName of fileNames) {
  console.log(fileName);
}
```

## API

### `directoryFiles(dir)`

Type: `{Function}`

* `{String} dir` - Absolute path to a directory.

Return: `Array{String}` - An array of full absolute paths.

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