# @teppeis/multimaps

> Multimap classes for TypeScript and JavaScript

Latest version **3.0.0** (published 2023-03-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install @teppeis/multimaps
pnpm add @teppeis/multimaps
yarn add @teppeis/multimaps
bun add @teppeis/multimaps
```

## Health

**Score 40/100 (D)** — status: abandoned.

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

Warnings: low downloads.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2023-03-19 |
| First published | 2018-09-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=14 |
| Dependencies | 0 |
| Unpacked size | 17.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Author | Teppei Sato |
| Maintainers | teppeis |
| Keywords | map, multi-map, multimap, typescript |

## Links

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

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 3.0.0 (latest) — 2023-03-19
- 3.0.0-0 (next) — 2022-09-19
- 2.0.0 — 2021-01-26
- 2.0.0-0 — 2021-01-25
- 1.1.0 — 2018-11-23
- 1.0.0 — 2018-09-02

## README

# @teppeis/multimaps

Multi-Map classes for TypeScript and JavaScript

[![npm version][npm-image]][npm-url]
![Node.js Version Support][node-version]
![TypeScript Version Support][ts-version]
[![build status][ci-image]][ci-url]
![dependency status][deps-count-image]
![monthly downloads][npm-downloads-image]
![License][license]

## Install

```console
$ npm i @teppeis/multimaps
```

## Usage

### `ArrayMultimap`

```js
import {ArrayMultimap} from '@teppeis/multimaps';

const map = new ArrayMultimap<string, string>();
map.put('foo', 'a');
map.get('foo'); // ['a']
map.put('foo', 'b');
map.get('foo'); // ['a', 'b']
map.put('foo', 'a');
map.get('foo'); // ['a', 'b', 'a']
```

### `SetMultimap`

```js
import {SetMultimap} from '@teppeis/multimaps';

const map = new SetMultimap<string, string>();
map.put('foo', 'a');
map.get('foo'); // a `Set` of ['a']
map.put('foo', 'b');
map.get('foo'); // a `Set` of ['a', 'b']
map.put('foo', 'a');
map.get('foo'); // a `Set` of ['a', 'b']
```

## License

MIT License: Teppei Sato &lt;teppeis@gmail.com&gt;

[npm-image]: https://badgen.net/npm/v/@teppeis/multimaps?icon=npm&label=
[npm-url]: https://npmjs.org/package/@teppeis/multimaps
[npm-downloads-image]: https://badgen.net/npm/dm/@teppeis/multimaps
[deps-image]: https://badgen.net/david/dep/teppeis/multimaps.svg
[deps-url]: https://david-dm.org/teppeis/multimaps
[deps-count-image]: https://badgen.net/bundlephobia/dependency-count/@teppeis/multimaps
[node-version]: https://badgen.net/npm/node/@teppeis/multimaps
[ts-version]: https://badgen.net/badge/typescript/%3E=4.0?icon=typescript
[license]: https://img.shields.io/npm/l/@teppeis/multimaps.svg
[ci-image]: https://github.com/teppeis/multimaps/workflows/CI/badge.svg
[ci-url]: https://github.com/teppeis/multimaps/actions?query=workflow%3ACI

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