# hash-multivalue

> Store multiple values per key in an object.

Latest version **0.1.0** (published 2012-04-25) · 0 weekly downloads

## Install

```sh
npm install hash-multivalue
pnpm add hash-multivalue
yarn add hash-multivalue
bun add hash-multivalue
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2012-04-25 |
| First published | 2012-04-25 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | * |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | cho45 |
| Maintainers | cho45 |

## Links

- npm: https://www.npmjs.com/package/hash-multivalue
- Repository: https://github.com/cho45/hash-multivalue.js
- npm.io page: https://npm.io/package/hash-multivalue

## Recent versions

- 0.1.0 (latest) — 2012-04-25

## README

Hash MultiValue
===============

Store multiple values per key.

Very inspired from Hash::MultiValue in CPAN.


SYNOPSIS
--------

	var hash = HashMultiValue({
		foo : ['aaa', 'bbb', 'ccc'],
		bar : ['111', '222', '333']
	});

	hash.foo; //=> 'ccc';
	hash.get('foo'); //=> 'ccc';
	hash.getAll('foo'); //=> ['aaa', 'bbb', 'ccc']

This is mainly designed for like query parameters and HTTP headers.


RESTRICTION
-----------

'get', 'getAll', 'set', 'add', 'remove', 'clear' and so on are methods for manipulating instance,
so you can't access the keys named so directly. Eg:

	var hash = HashMultiValue({
		foo : ['aaa', 'bbb', 'ccc'],
		get : ['111', '222']
	});

	hash.foo; //=> 'ccc'; (ok)
	hash.get; //=> [Function]; (ng)
	hash.get('get'); //=> '222' (ok)

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