# across-tabs-notify

> 浏览器跨 tab 页通信。

Latest version **0.1.2** (published 2019-06-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install across-tabs-notify
pnpm add across-tabs-notify
yarn add across-tabs-notify
bun add across-tabs-notify
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2019-06-26 |
| First published | 2019-06-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 147 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | weineel |
| Maintainers | weineel |
| Keywords | cross, tab, browser, notify, notification, message |

## Links

- npm: https://www.npmjs.com/package/across-tabs-notify
- npm.io page: https://npm.io/package/across-tabs-notify

## Alternatives

- [@lexical/table](https://npm.io/package/@lexical/table.md) — 3.0M weekly downloads
- [mantine-datatable](https://npm.io/package/mantine-datatable.md) — 98.2K weekly downloads
- [react-native-collapsible-tab-view](https://npm.io/package/react-native-collapsible-tab-view.md) — 70.6K weekly downloads
- [@handsontable/vue3](https://npm.io/package/@handsontable/vue3.md) — 16.1K weekly downloads
- [vuewordcloud](https://npm.io/package/vuewordcloud.md) — 7.2K weekly downloads

## Recent versions

- 0.1.2 (latest) — 2019-06-26
- 0.1.1 — 2019-06-26
- 0.1.0 — 2019-06-26

## README

# 轻量级浏览器跨 tab 通信

> 目前仅测试了 chrome。

## 安装

```shell
yarn add across-tabs-notify
# or
npm install --save across-tabs-notify
```

## 用法

```javascript
import AcrossTabsNotify from 'across-tabs-notify'

// 发送跨 tab 通知。
AcrossTabsNotify.broardcast('event-name', {
    data: 'message data'
})

// 在任意位置监听通知
AcrossTabsNotify.om('event-name', payload => {
  console.log(payload.data)  // 'message data'
})
```

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