panorama-polyfill

0.1.1 • Public • Published

panorama-polyfill

Polyfills for common JavaScript features for Valve's Panorama UI (for Dota 2 Custom Games).

Installation

This package can be used only with a ESM bundler, such as webpack. Check out this tutorial for configuration instructions.

npm install panorama-polyfill

Usage

Functionality of this module is split across multiple entry points:

panorama-polyfill/lib/console

A polyfill for console object, featuring pretty value formatting.

import 'panorama-polyfill/lib/console';
 
console.log('Hello, world!'); // => Hello, world!
console.log('Hello, %s!', 'world'); // => Hello, world!
console.log([1, 2, 3]); // => [1, 2, 3]
console.log({ foo: { bar: /baz/ } }); // => { foo: { bar: /baz/ } }

panorama-polyfill/lib/timers

Polyfills for web timers (using $.Schedule):

  • setInterval and clearInterval
  • setTimeout and clearTimeout
  • setImmediate and clearImmediate

panorama-polyfill/lib/es

Polyfills for standard EcmaScript features that are missing from Panorama (> ES2017).

Readme

Keywords

Package Sidebar

Install

npm i panorama-polyfill

Weekly Downloads

3

Version

0.1.1

License

MIT

Unpacked Size

15.3 kB

Total Files

18

Last publish

Collaborators

  • ark120202