# broccoli-derequire

> Broccoli plugin to replace on token with another (require => __dereq__).

Latest version **1.0.0** (published 2021-02-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install broccoli-derequire
pnpm add broccoli-derequire
yarn add broccoli-derequire
bun add broccoli-derequire
```

## 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.0.0 |
| Published | 2021-02-18 |
| First published | 2014-10-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | 10.* \|\| >= 12 |
| Dependencies | 2 |
| Unpacked size | 8.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Robert Jackson |
| Maintainers | rwjblue, stefanpenner |
| Keywords | broccoli-plugin, javascript |

## Links

- npm: https://www.npmjs.com/package/broccoli-derequire
- Repository: https://github.com/rwjblue/broccoli-derequire
- Homepage: https://github.com/rwjblue/broccoli-derequire#readme
- Issues: https://github.com/rwjblue/broccoli-derequire/issues
- npm.io page: https://npm.io/package/broccoli-derequire

## Dependencies (2)

- [derequire](https://npm.io/package/derequire.md) ^2.1.1
- [broccoli-persistent-filter](https://npm.io/package/broccoli-persistent-filter.md) ^3.1.2

## Recent versions

- 1.0.0 (latest) — 2021-02-18
- 0.1.0 — 2015-03-09
- 0.0.1 — 2014-10-02

## README

# broccoli-derequire

[![Build Status](https://travis-ci.org/rwjblue/broccoli-derequire.svg?branch=master)](https://travis-ci.org/rwjblue/broccoli-derequire)

## Summary

Uses [derequire](https://github.com/calvinmetcalf/derequire) to replace all occurances of a given token with another (`require` with `_dereq_` by default).

## Installation

```bash
npm install --save-dev broccoli-derequire
```

## Usage

### Files

```javascript
var derequire = require('broccoli-derequire');
```

## Documentation

### `derequire(inputTree, options)`

---

`options.patterns` *{Array}*

A list of objects with `from` and `to` properties.

---

`options.pattern` *{Object}*

A single pattern with `from` and `to` properties.

## ZOMG!!! TESTS?!?!!?

I know, right?

Running the tests:

```javascript
npm install
npm test
```

## License

This project is distributed under the MIT license.

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