@demon673/panorama-polyfill

0.1.4 • 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 @demon673/panorama-polyfill

Weekly Downloads

1

Version

0.1.4

License

MIT

Unpacked Size

15.3 kB

Total Files

18

Last publish

Collaborators

  • demon673