# require-files

> require files with wildcards

Latest version **0.0.7** (published 2017-12-06) · ISC license · 0 weekly downloads

## Install

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

## 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.0.7 |
| Published | 2017-12-06 |
| First published | 2017-08-01 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Rodrigo Brabo |
| Maintainers | brab0 |
| Keywords | require |

## Links

- npm: https://www.npmjs.com/package/require-files
- Repository: https://github.com/brab0/require-files
- Homepage: https://github.com/brab0/require-files#readme
- Issues: https://github.com/brab0/require-files/issues
- npm.io page: https://npm.io/package/require-files

## Dependencies (2)

- [glob](https://npm.io/package/glob.md) ^7.1.2
- [lodash](https://npm.io/package/lodash.md) ^4.17.4

## Recent versions

- 0.0.7 (latest) — 2017-12-06
- 0.0.6 — 2017-12-06
- 0.0.5 — 2017-11-25
- 0.0.4 — 2017-08-02
- 0.0.3 — 2017-08-01
- 0.0.2 — 2017-08-01
- 0.0.1 — 2017-08-01

## README

require-files
=============
Require files with wildcards

## Install
```bash
$ npm install require-files --save
```

## Methods
### get(includePaths, excludePaths)
It returns an array with every file found based on a wildcard string. `excludePaths` are not required.

```javascript
const files = require('require-files').get('my/path/**/*.js');    
```

### only(includePaths, excludePaths)
requires all files (without returning) found based on a wildcard string. `excludePaths` are not required.

```javascript
require('require-files').only('my/path/**/*.js');    
```

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