# get-files-in-dir

> Retrieves all matching files in path

Latest version **0.2.1** (published 2015-10-20) · MIT license · 0 weekly downloads

## Install

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

## 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.2.1 |
| Published | 2015-10-20 |
| First published | 2015-10-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.10.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | ivo@poeticsilk.com |
| Maintainers | ivop |
| Keywords | dir, file |

## Links

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

## Dependencies (1)

- [underscore](https://npm.io/package/underscore.md) ^1.8.3

## 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.2.1 (latest) — 2015-10-20
- 0.2.0 — 2015-10-20
- 0.1.1 — 2015-10-20
- 0.1.0 — 2015-10-20

## README

get-files-in-dir - Given a path, retrieves all matching files.

## Installation

	npm install get-files-in-dir --save
	 
## Usage

	var getFiles = require("get-files-in-dir");
	
	function endsWithTxt(filename){
		return filename.lastIndexOf(".txt") === (filename.length - 4);
	}
	var matchingFiles = getFiles('somePath', includeSubdirs, endsWithTxt);

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