# folquire

> Requires all the modules from a folder

Latest version **2.0.11** (published 2026-01-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install folquire
pnpm add folquire
yarn add folquire
bun add folquire
```

## Health

**Score 45/100 (D)** — status: stable.

Positive: no vulnerabilities.

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

## Facts

| | |
|---|---|
| Version | 2.0.11 |
| Published | 2026-01-02 |
| First published | 2021-05-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=16 |
| Dependencies | 1 |
| Unpacked size | 5.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 0 |
| Author | Gabriel Rufino |
| Maintainers | gabrielrufino |

## Links

- npm: https://www.npmjs.com/package/folquire
- Repository: https://github.com/gabrielrufino/folquire
- Homepage: https://github.com/gabrielrufino/folquire#readme
- Issues: https://github.com/gabrielrufino/folquire/issues
- Funding: https://github.com/sponsors/gabrielrufino
- npm.io page: https://npm.io/package/folquire

## Dependencies (1)

- [camelcase](https://npm.io/package/camelcase.md) ^6.3.0

## Recent versions

- 2.0.11 (latest) — 2026-01-02
- 2.0.10 — 2025-11-02
- 2.0.8 — 2025-05-31
- 2.0.7 — 2025-02-13
- 2.0.6 — 2024-10-29
- 2.0.3 — 2024-05-18
- 2.0.2 — 2024-05-15
- 1.0.32 — 2024-03-24
- 1.0.31 — 2024-02-17
- 1.0.30 — 2023-11-21
- 1.0.29 — 2023-10-25
- 1.0.28 — 2023-09-15
- 1.0.26 — 2023-09-04
- 1.0.25 — 2023-07-16
- 1.0.24 — 2023-05-02
- … 25 more at https://npm.io/package/folquire/versions

## README

![Folquire banner](./assets/folquire.png)

# Folquire

[![Black Tech by Gabriel Rufino](https://img.shields.io/badge/Black_Tech-by_Gabriel_Rufino_%F0%9F%96%A4-white?style=flat-square&labelColor=444444)](https://gabrielrufino.com)
[![CI](https://github.com/gabrielrufino/folquire/actions/workflows/ci.yml/badge.svg)](https://github.com/gabrielrufino/folquire/actions/workflows/ci.yml)
[![CD](https://github.com/gabrielrufino/folquire/actions/workflows/cd.yml/badge.svg)](https://github.com/gabrielrufino/folquire/actions/workflows/cd.yml)

Requires all the modules from a folder

### Getting started

To install run this command:

```sh
npm install folquire
```

Let's see an example. Suppose we have the following folder structure:

```
+-- math
|  +-- add.js
|  +-- subtract.js
|  +-- multiply.js
|  +-- divide.js
+-- index.js
```

<small>index.js</small>

```js
'use strict'

const { join } = require('path')
const folquire = require('folquire')

const math = folquire(join(__dirname, 'math'))

math.add(1, 2)      // 2
math.subtract(8, 4) // 4
math.multiply(6, 7) // 42
math.divide(20, 10) // 2
```

### Async folquire

<small>index.js</small>

```js
'use strict'

const { join } = require('path')
const folquire = require('folquire')

folquire(join(__dirname, 'math'))
  .then(math => {
    math.add(1, 2)      // 2
    math.subtract(8, 4) // 4
    math.multiply(6, 7) // 42
    math.divide(20, 10) // 2
  })
```

### Ignore modules

```js
'use strict'

const { join } = require('path')
const folquire = require('folquire')

const modules = folquire(join(__dirname, 'math'), {
  ignore: ['add.js']
})
```

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