# @tbminiapp/pixi-unsafe-eval

> Adds support for environments that disallow support of new Function

Latest version **6.2.1-beta.9** (published 2022-03-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install @tbminiapp/pixi-unsafe-eval
pnpm add @tbminiapp/pixi-unsafe-eval
yarn add @tbminiapp/pixi-unsafe-eval
bun add @tbminiapp/pixi-unsafe-eval
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 6.2.1-beta.9 |
| Published | 2022-03-17 |
| First published | 2022-02-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 62.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Matt Karl |
| Maintainers | tbminiapp |

## Links

- npm: https://www.npmjs.com/package/@tbminiapp/pixi-unsafe-eval
- Homepage: http://pixijs.com/
- npm.io page: https://npm.io/package/@tbminiapp/pixi-unsafe-eval

## Recent versions

- 6.2.1-beta.9 (latest) — 2022-03-17
- 6.2.1-beta.8 — 2022-03-14
- 6.2.1-beta.7 — 2022-03-07
- 6.2.1-beta.6 — 2022-03-07
- 6.2.1-beta.5 — 2022-03-07
- 6.2.1-beta.4 — 2022-03-07
- 6.2.1-beta.3 — 2022-03-02
- 6.2.1-beta.1 — 2022-02-24

## README

# @tbminiapp/pixi-unsafe-eval

Adds support for environments that disallow support of `new Function`, such as WeChat.

## Installation

```bash
npm install @tbminiapp/pixi-unsafe-eval
```

## Usage

If you are using a bundler, you need to pass the core bundle into the `install` method. This function takes one arguments, either the global `PIXI` object, or the core.

```js
import { ShaderSystem, Renderer } from '@tbminiapp/pixi-core';
import { install } from '@tbminiapp/pixi-unsafe-eval';

// Apply the patch to PIXI
install({ ShaderSystem });

// Create the renderer with patch applied
const renderer = new Renderer();
```

If you are including **unsafe-eval.js** direct, you do not need to do anything else:

```html
<script src="pixi.min.js"></script>
<script src="unsafe-eval.min.js"></script>
```

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