@polkadot/x-global
TypeScript icon, indicating that this package has built-in type declarations

12.6.2 • Public • Published

@polkadot/x-global

A cross-environment global object. checks for global > self > window > this.

Install it via yarn add @polkadot/x-global

import { xglobal } from '@polkadot/x-global';

console.log(typeof xglobal.TextEncoder);

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @polkadot/x-global

    Weekly Downloads

    129,295

    Version

    12.6.2

    License

    Apache-2.0

    Unpacked Size

    16.6 kB

    Total Files

    10

    Last publish

    Collaborators

    • polkadotjs
    • jacogr