# require-proxy

> use destructuring to require modules

Latest version **1.1.0** (published 2016-02-02) · ISC license · 0 weekly downloads

## Install

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

## 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.1.0 |
| Published | 2016-02-02 |
| First published | 2016-02-01 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | epicgirl1998 |
| Keywords | proxy, require |

## Links

- npm: https://www.npmjs.com/package/require-proxy
- npm.io page: https://npm.io/package/require-proxy

## Dependencies (1)

- [harmony-proxy](https://npm.io/package/harmony-proxy.md) ^0.1.0

## Recent versions

- 1.1.0 (latest) — 2016-02-02
- 0.1.0 — 2016-02-01
- 1.0.0 — 2016-02-01

## README

lets you use destructuring to require modules

probably needs `--harmony-destructuring` and `--harmony-proxies`

example:

	const {
		
		// varname = require("modulename");
		modulename: varname,
		
		// shorthand = require("shorthand");
		shorthand,
		
		// validIdentifier = require("hyphenated-module");
		"hyphenated-module": validIdentifier,
		
	} = require("require-proxy")(require);

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