# rollup-plugin-backdoor

> Open backdoor to access instance via global vars.

Latest version **4.0.1-alpha.0** (published 2021-05-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install rollup-plugin-backdoor
pnpm add rollup-plugin-backdoor
yarn add rollup-plugin-backdoor
bun add rollup-plugin-backdoor
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.0.1-alpha.0 |
| Published | 2021-05-13 |
| First published | 2021-03-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | mizchi |

## Links

- npm: https://www.npmjs.com/package/rollup-plugin-backdoor
- npm.io page: https://npm.io/package/rollup-plugin-backdoor

## Recent versions

- 4.0.1-alpha.0 (latest) — 2021-05-13
- 3.4.1 — 2021-04-23
- 3.4.0 — 2021-03-24

## README

# rollup-plugin-backdoor

Open backdoor to access instance via global vars.

CAUTION: Only for rollup in browser(main-thread)

```bash
$ npm install rollup-plugin-backdoor --save
# or
$ yarn add rollup-plugin-backdoor
```

## Options

- `instances: {[name: string]: any}`

## Example

```ts
// runner code
import Foo from "backdoor:Foo";
new Foo();
```

```ts
// rollup.config.js
import { backdoor } from "rollup-plugin-backdoor";

export default {
  plugins: [
    backdoor({
      instances: {
        Foo: class Foo {}, // open in memory proxy
      },
    }),
    // ..
  ],
};
```

## LICENSE

MIT

```

```

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