# @essentials/one-key-map

> A Map-like data structure that only stores the most recently set key/value pair

Latest version **1.2.0** (published 2020-06-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install @essentials/one-key-map
pnpm add @essentials/one-key-map
yarn add @essentials/one-key-map
bun add @essentials/one-key-map
```

## Health

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

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

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2020-06-05 |
| First published | 2019-04-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 11 |
| Author | Jared Lunde |
| Maintainers | jaredlunde |
| Keywords | one key map |

## Links

- npm: https://www.npmjs.com/package/@essentials/one-key-map
- Repository: https://github.com/jaredLunde/essentials
- Homepage: https://github.com/jaredLunde/essentials/tree/master/packages/one-key-map#readme
- Issues: https://github.com/jaredLunde/essentials/issues
- npm.io page: https://npm.io/package/@essentials/one-key-map

## Recent versions

- 1.2.0 (latest) — 2020-06-05
- 1.1.1 — 2020-05-31
- 1.1.0 — 2020-05-31
- 1.0.2 — 2020-04-10
- 1.0.1 — 2019-11-25
- 1.0.0 — 2019-04-06

## README

<hr>
<div align="center">
  <h1 align="center">
    @essentials/one-key-map
  </h1>
</div>

<p align="center">
  <a href="https://bundlephobia.com/result?p=@essentials/one-key-map">
    <img alt="Bundlephobia" src="https://img.shields.io/bundlephobia/minzip/@essentials/one-key-map?style=for-the-badge&labelColor=24292e">
  </a>
  <a aria-label="Types" href="https://www.npmjs.com/package/@essentials/one-key-map">
    <img alt="Types" src="https://img.shields.io/npm/types/@essentials/one-key-map?style=for-the-badge&labelColor=24292e">
  </a>
  <a aria-label="NPM version" href="https://www.npmjs.com/package/@essentials/one-key-map">
    <img alt="NPM Version" src="https://img.shields.io/npm/v/@essentials/one-key-map?style=for-the-badge&labelColor=24292e">
  </a>
  <a aria-label="License" href="https://jaredlunde.mit-license.org/">
    <img alt="MIT License" src="https://img.shields.io/npm/l/@essentials/one-key-map?style=for-the-badge&labelColor=24292e">
  </a>
</p>

<pre align="center">npm i @essentials/one-key-map</pre>
<hr>

A Map-like data structure that only stores the most recently set key/value pair

## Quick Start

```js
import OneKeyMap from '@essentials/one-key-map'

const map = new OneKeyMap()
map.set('foo', 'bar')
map.get('foo')
// bar
map.set('foo2', 'bar2')
map.get('foo')
// undefined
map.get('foo2')
// bar2
```

## LICENSE

MIT

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