# require_optional

> Allows you declare optionalPeerDependencies that can be satisfied by the top level module but ignored if they are not.

Latest version **1.0.1** (published 2017-06-14) · Apache-2.0 license · 0 weekly downloads

## Install

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

## 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.1 |
| Published | 2017-06-14 |
| First published | 2016-02-03 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Christian Kvalheim Amor |
| Maintainers | christkv |
| Keywords | optional, require, optionalPeerDependencies |

## Links

- npm: https://www.npmjs.com/package/require_optional
- Repository: https://github.com/christkv/require_optional
- Issues: https://github.com/christkv/require_optional/issues
- npm.io page: https://npm.io/package/require_optional

## Dependencies (2)

- [semver](https://npm.io/package/semver.md) ^5.1.0
- [resolve-from](https://npm.io/package/resolve-from.md) ^2.0.0

## Recent versions

- 1.0.1 (latest) — 2017-06-14
- 1.0.0 — 2016-02-03

## README

# require_optional
Work around the problem that we do not have a optionalPeerDependencies concept in node.js making it a hassle to optionally include native modules

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