open-index/open-npm huggingface dataset:
npm package: @iotize/device-admin.js
Description: Extras features for IoTize Tap Device API
Author: IoTize
Latest version: 0.0.1-alpha.12

# IoTize Device Administration utility


## Installation

### Browser 

Download [latest version](https://cdn.jsdelivr.net/npm/@iotize-private/device-extras.js@latest/dist/iotize-device-admin.min.js) to your website directory or or use the `http` link directly in your page.

```html
<script src="https://cdn.jsdelivr.net/npm/@iotize-private/device-extras.js@latest/dist/iotize-device-admin.min.js"/>
```

### npm

```bash
npm install @iotize/device-admin.js
```

## API

For more informations, read the [documentation](http://developer.iotize.com).
npm package: @iotize/device-com-mock.js
Description: Mock IoTize Device Communication protocol
Author: IoTize
Latest version: 0.0.1-alpha.16

# IoTize Device Com Webview

IoTize communication protocol that proxy commmunication between your javascript app running inside a webview and the native application. 

## Installation

### Browser 

Download [latest version](https://cdn.jsdelivr.net/npm/@iotize/device-com-webview.js@latest/dist/iotize-device-com-webview.min.js) to your website directory or or use the `http` link directly in your page.

```html
<script src="https://cdn.jsdelivr.net/npm/@iotize/device-com-webview.js@latest/dist/iotize-device-com-webview.min.js"/>
```

### npm

```bash
npm install @iotize/device-com-webview.js
```

## API

### IoTizeDeviceComWebview::isIoTizeWebView()

Return `true` if your app script is running in a webview where the IoTize com protocol has been injected.

**Usage**
```javascript
let result = IoTizeDeviceComWebview.isIoTizeWebView();
```

### IoTizeDeviceComWebview::getInjectedIoTizeDevice()

Build `IoTizeDevice` object if it's running inside an IoTize webview. Throw an error otherwise

**Usage**
```javascript
let iotizeDevice = IoTizeDeviceComWebview.getInjectedIoTizeDevice();
// ...
```

### IoTizeDeviceComWebview::getInjectedIoTizeDevice()

Manually instantiate the communication protocol object.

**Usage**
```javascript
let protocol = IoTizeDeviceComWebview.WebViewComProtocol();
// Use it to connect with an IoTizeDevice for example
```

For more informations, read the [documentation](http://developer.iotize.com).