@teppeis/multimaps
Multimap classes for TypeScript and JavaScript
Last updated 6 years ago by teppeis .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @teppeis/multimaps 
SYNC missed versions from official npm registry.

@teppeis/multimaps

Multi-Map classes for TypeScript and JavaScript

npm version Node.js Version Support TypeScript Version Support build status dependency status monthly downloads License

Install

$ npm i @teppeis/multimaps

Usage

ArrayMultimap

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

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 <teppeis@gmail.com>

Current Tags

  • 3.0.0                                ...           latest (2 years ago)
  • 3.0.0-0                                ...           next (2 years ago)

6 Versions

  • 3.0.0                                ...           2 years ago
  • 3.0.0-0                                ...           2 years ago
  • 2.0.0                                ...           4 years ago
  • 2.0.0-0                                ...           4 years ago
  • 1.1.0                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (14)

© 2010 - cnpmjs.org x YWFE | Home | YWFE