# get-files-in

> A simple script that synchronously returns a list of file paths of specified types from a directory.

Latest version **1.2.0** (published 2019-06-29) · ISC license · 0 weekly downloads

## Install

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

## 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.2.0 |
| Published | 2019-06-29 |
| First published | 2019-06-24 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Ben Rogerson |
| Maintainers | ben-rogerson |

## Links

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

## Recent versions

- 1.2.0 (latest) — 2019-06-29
- 1.1.0 — 2019-06-24
- 1.0.0 — 2019-06-24

## README

# Get files in

A Node.js script that synchronously returns a list of file paths of specified types from a directory or directories.

## Install

```bash
npm install -D get-files-in
```

## Usage

```js
getFilesIn(folderPath, matchFiletypes = [], checkSubDirectories = false)
```

```js
require()
getFilesIn(path.resolve(__dirname, source.styles), [
    "scss",
    "sass",
    "less",
]
// [
//  '/Users/hotstuff/project/src/styles/main.scss',
//  '/Users/hotstuff/project/src/styles/hello.sass',
// ]
```

```js
require()
getFilesIn(path.resolve(__dirname, source.styles), [
    "scss",
    "sass",
    "less",
], true
// [
//  '/Users/hotstuff/project/src/styles/main.scss',
//  '/Users/hotstuff/project/src/styles/hello.sass',
//  '/Users/hotstuff/project/src/styles/subfolders-allowed/index.sass',
// ]
```

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