open-index/open-npm huggingface dataset:
npm package: @metromerce/browser-polyfill
Description: Browser polyfill for making React Native compatible with web libs like pixi.js, three.js, phaser.js
Author: Evan Bacon
Latest version: 0.0.1-alpha.4

# @expo/browser-polyfill

Browser polyfill for React Native

### Installation

```bash
yarn add @expo/browser-polyfill
```

### Usage

Import the library into your JavaScript file:

```js
import '@expo/browser-polyfill';
```

## Implements

## DOM

DOM is provided with very low support, these are used for libs like pixi.js that validate type.

```js
class Node
class Element
class Document
class HTMLImageElement
class Image
class ImageBitmap
class HTMLVideoElement
class Video
class HTMLCanvasElement
class Canvas
```

### Image, HTMLImageElement, ImageBitmap

Image has support for loading callbacks, however the loaded uri must be passed to the src already.

```js
const image = new Image();
image.src = '';
image.onload = () => {
  const { src, width, height } = image;
};
image.addEventListener('loading', () => {});
image.addEventListener('error', () => {});
```

### Document

```js
const element = document.createElement('div');
const fakeContext = element.getContext('');
```

### Element

#### All sizes return the window size:

```js
element.clientWidth;
element.clientHeight;
element.innerWidth;
element.innerHeight;
element.offsetWidth;
element.offsetHeight;
```

#### Empty attributes that prevent libraries from crashing

```js
element.tagName;
element.addEventListener;
element.removeEventListener;
element.setAttributeNS;
element.createElementNS;
```

### Node

```js
node.ownerDocument;
node.className;
node.appendChild;
node.insertBefore;
node.removeChild;
node.setAttributeNS;
node.getBoundingClientRect;
```

# External Libraries

Some external node.js polyfills are added as well.

## [text-encoding](https://github.com/inexorabletash/text-encoding)

```
global.TextEncoder
global.TextDecoder
```

## [xmldom-qsa](https://github.com/zeligzhou/xmldom-qsa)

```
window.DOMParser
```

## [react-native-console-time-polyfill](https://github.com/MaxGraey/react-native-console-time-polyfill)

```
console.time(label);
console.timeEnd(label);
console.count(label);
```

# Debug flags

For debugging base64 image transformations toggle:

```js
global.__debug_browser_polyfill_image = true;
```

By default `global.__debug_browser_polyfill_image` is false.
npm package: @metromerce/metroid-cli
Description: Metroid CLI
Author: Metromerce
Latest version: 0.0.2

metroid-cli
===========

Metroid CLI

[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
[![Version](https://img.shields.io/npm/v/metroid-cli.svg)](https://npmjs.org/package/metroid-cli)
[![Downloads/week](https://img.shields.io/npm/dw/metroid-cli.svg)](https://npmjs.org/package/metroid-cli)
[![License](https://img.shields.io/npm/l/metroid-cli.svg)](https://github.com/metromerce/metroid-cli/blob/master/package.json)

<!-- toc -->
* [Usage](#usage)
* [Commands](#commands)
<!-- tocstop -->
# Usage
<!-- usage -->
```sh-session
$ npm install -g metroid-cli
$ metroid COMMAND
running command...
$ metroid (-v|--version|version)
metroid-cli/0.0.1 darwin-x64 node-v11.0.0
$ metroid --help [COMMAND]
USAGE
  $ metroid COMMAND
...
```
<!-- usagestop -->
# Commands
<!-- commands -->
* [`metroid hello`](#metroid-hello)
* [`metroid help [COMMAND]`](#metroid-help-command)

## `metroid hello`

Describe the command here

```
USAGE
  $ metroid hello

OPTIONS
  -n, --name=name  name to print

DESCRIPTION
  ...
  Extra documentation goes here
```

_See code: [src/commands/hello.js](https://github.com/metromerce/metroid-cli/blob/v0.0.1/src/commands/hello.js)_

## `metroid help [COMMAND]`

display help for metroid

```
USAGE
  $ metroid help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI
```

_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v2.1.6/src/commands/help.ts)_
<!-- commandsstop -->