Socket
Socket
Sign inDemoInstall

@pixi/unsafe-eval

Package Overview
Dependencies
32
Maintainers
2
Versions
108
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pixi/unsafe-eval

Adds support for environments that disallow support of new Function


Version published
Maintainers
2
Weekly downloads
9,146
decreased by-8.74%

Weekly downloads

Readme

Source

@pixi/unsafe-eval

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

Installation

npm install @pixi/unsafe-eval

Usage

Import @pixi/unsafe-eval before you create Application or Renderer.

import { Renderer } from '@pixi/core';

// Apply the patch to PIXI
import '@pixi/unsafe-eval';

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

CDN Install

Via jsDelivr:

<!-- This script tag should be placed after pixi.min.js -->
<script src="https://cdn.jsdelivr.net/npm/@pixi/unsafe-eval@7.x/dist/unsafe-eval.min.js"></script>

Or via unpkg:

<!-- This script tag should be placed after pixi.min.js -->
<script src="https://unpkg.com/@pixi/unsafe-eval@7.x/dist/unsafe-eval.min.js"></script>

FAQs

Last updated on 20 Mar 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc