# interop-require

> Require babel's ES6 modules from node.

Latest version **1.0.0** (published 2015-11-02) · CC0-1.0 license · 0 weekly downloads

## Install

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

## 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 | 2015-11-02 |
| First published | 2015-11-02 |
| Weekly downloads | 0 |
| License | CC0-1.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Izaak Schroeder |
| Maintainers | izaakschroeder |

## Links

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

## Recent versions

- 1.0.0 (latest) — 2015-11-02

## README

# interop-require

Require babel's ES6 modules from node.

With the release of [babel]`@6` the way generated modules work now does NOT set the `module.exports` property; instead it sets `exports.default`. Of course this basically breaks everything trying to `require()` it. So this tiny module is a replacement for `require()` for node-based runtimes that imports the default if an ES6 module is detected. A necessary evil it seems, given this behavior is not changing: https://github.com/babel/babel/issues/2212.

[babel]: https://github.com/babel/babel

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