# node-filepaths

> Get paths to all files in dirs/subdirs

Latest version **0.1.0** (published 2015-06-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install node-filepaths
pnpm add node-filepaths
yarn add node-filepaths
bun add node-filepaths
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2015-06-08 |
| First published | 2014-09-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Daniel St. Jules |
| Maintainers | danielstjules |
| Keywords | paths, files, dirs, recursive |

## Links

- npm: https://www.npmjs.com/package/node-filepaths
- Repository: https://github.com/danielstjules/node-filepaths
- Issues: https://github.com/danielstjules/node-filepaths/issues
- npm.io page: https://npm.io/package/node-filepaths

## Dependencies (1)

- [file](https://npm.io/package/file.md) 0.2.2

## 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.0 (latest) — 2015-06-08
- 0.0.3 — 2014-10-23
- 0.0.2 — 2014-09-21
- 0.0.1 — 2014-09-21

## README

node-filepaths
==============

Get paths to all files in dirs/subdirs

[![Build Status](https://travis-ci.org/danielstjules/node-filepaths.svg?branch=master)](https://travis-ci.org/danielstjules/node-filepaths)

#### getSync(paths, [opts])

Recurses through the supplied paths, returning an array of file paths found
in each. Paths may be a string, or an array of strings. The paths may be
strings pointing to files or directories. Accepts an options object with
the following keys: ignore and ext. opts.ignore takes either a single
string pattern or array of patterns to ignore. opts.ext accepts either
a string, or array of strings corresponding to filename extensions to
retrieve.

``` javascript
var filepaths = require('filepaths');

filepaths.getSync('/dir');

filePaths.getSync('/lib', {ext: '.js'});

filePaths.getSync('/project', {ignore: 'node_modules'});

filePaths.getSync('/project', {ignore: 'test|spec'});

filepaths.getSync(['/dir1', '/dir2'], {
  ext:    ['.js', '.jsx'],
  ignore: ['node_modules']
});
```

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