# @cqlinkoff/bridge

> bridge of native and web

Latest version **1.2.0** (published 2019-02-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install @cqlinkoff/bridge
pnpm add @cqlinkoff/bridge
yarn add @cqlinkoff/bridge
bun add @cqlinkoff/bridge
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2019-02-14 |
| First published | 2018-11-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >= 8 |
| Dependencies | 1 |
| Unpacked size | 11.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | kagawagao |
| Maintainers | kagawa |
| Keywords | bridge, native, web |

## Links

- npm: https://www.npmjs.com/package/@cqlinkoff/bridge
- Repository: https://github.com/cqlinkoff/bridge
- Homepage: https://github.com/cqlinkoff/bridge#readme
- Issues: https://github.com/cqlinkoff/bridge/issues
- npm.io page: https://npm.io/package/@cqlinkoff/bridge

## Dependencies (1)

- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.3.1

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 1.2.0 (latest) — 2019-02-14
- 1.1.0 — 2018-11-30

## README

# Bridge

> Bridge of native and web

[![node](https://img.shields.io/node/v/@cqlinkoff/bridge.svg)](https://www.npmjs.com/package/@cqlinkoff/bridge)
[![npm](https://img.shields.io/npm/v/@cqlinkoff/bridge.svg)](https://www.npmjs.com/package/@cqlinkoff/bridge)
[![license](https://img.shields.io/npm/l/@cqlinkoff/bridge.svg)](https://github.com/cqlinkoff/bridge/blob/master/LICENSE)
[![Build Status](https://travis-ci.org/cqlinkoff/bridge.svg?branch=master)](https://travis-ci.org/cqlinkoff/bridge)
[![Standard - JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](http://standardjs.com/)
[![Coverage Status](https://coveralls.io/repos/github/cqlinkoff/bridge/badge.svg?branch=master)](https://coveralls.io/github/cqlinkoff/bridge?branch=master)

## Installation

```bash
npm i @cqlinkoff/bridge
```

## Use

```js
import Bridge from '@cqlinkoff/bridge'

const bridge = new Bridge('namespace')

bridge.call(func, args)

bridge.addEventListener(event, handler)

bridge.removeEventListener(event, handler)
```

## API

- `bridge.call(funcName: string, args: any)`: call native function with args

- `bridge.addEventListener(event: string, handler: function)`: add event listener

- `bridge.removeEventListener(event: string, handler: function)`: remove event listener

---
_Source: https://npm.io/package/@cqlinkoff/bridge · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
