# interrelated

> js 数据双向关联

Latest version **2.0.0-0** (published 2022-01-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install interrelated
pnpm add interrelated
yarn add interrelated
bun add interrelated
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0-0 |
| Published | 2022-01-29 |
| First published | 2022-01-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | satori.love |
| Maintainers | invisiblefuture |

## Links

- npm: https://www.npmjs.com/package/interrelated
- Repository: https://github.com/InvisibleFuture/interrelated
- Homepage: https://github.com/InvisibleFuture/interrelated#readme
- Issues: https://github.com/InvisibleFuture/interrelated/issues
- npm.io page: https://npm.io/package/interrelated

## Recent versions

- 2.0.0-0 (latest) — 2022-01-29
- 1.0.0 — 2022-01-29

## README

# interrelated
js 数据双向关联


```javascript

import fmhub from './index.js'

const fm = new fmhub()
const users = ["0001", '0002', "0003", "0004"]

// 一组用户全部订阅频道一
users.forEach((item) => {
  fm.set("频道一号", item)
})

// 操作所有订阅了频道一的用户
fm.atob("频道一号", (data) => {
  console.log(data)
})

fm.btoa("0002", (data) => {
  console.log(data)
})

// console print:
//
// 0001
// 0002
// 0003
// 0004
// 频道一号
//

```

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