# strong-map

> [![License](https://img.shields.io/npm/l/strong-map.svg)](https://img.shields.io/npm/l/strong-map.svg) [![Build Status](https://travis-ci.org/jorma16/strong-map.svg?branch=master)](https://travis-ci.org/jorma16/strong-map) [![Coverage Status](https://cove

Latest version **1.0.5** (published 2019-08-06) · ISC license · 0 weekly downloads

## Install

```sh
npm install strong-map
pnpm add strong-map
yarn add strong-map
bun add strong-map
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2019-08-06 |
| First published | 2019-07-12 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10.15.3 |
| Dependencies | 0 |
| Unpacked size | 7.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jorma |
| Maintainers | j0rma |
| Keywords | Map, Extend, Object, Key |

## Links

- npm: https://www.npmjs.com/package/strong-map
- Repository: https://github.com/jorma16/strong-map
- Homepage: https://github.com/jorma16/strong-map#readme
- Issues: https://github.com/jorma16/strong-map/issues
- npm.io page: https://npm.io/package/strong-map

## Recent versions

- 1.0.5 (latest) — 2019-08-06
- 1.0.4 — 2019-07-15
- 1.0.3 — 2019-07-12
- 1.0.2 — 2019-07-12
- 1.0.1 — 2019-07-12
- 1.0.0 — 2019-07-12

## README

# Strong Map

[![License](https://img.shields.io/npm/l/strong-map.svg)](https://img.shields.io/npm/l/strong-map.svg)
[![Build Status](https://travis-ci.org/jorma16/strong-map.svg?branch=master)](https://travis-ci.org/jorma16/strong-map)
[![Coverage Status](https://coveralls.io/repos/github/jorma16/strong-map/badge.svg?branch=master)](https://coveralls.io/github/jorma16/strong-map?branch=master)
[![Github Issues](https://img.shields.io/github/issues-raw/jorma16/strong-map.svg)](https://img.shields.io/github/issues-raw/jorma16/strong-map.svg)
[![Version](https://img.shields.io/npm/v/strong-map.svg)](https://img.shields.io/npm/v/strong-map.svg)
[![Node Version](https://img.shields.io/node/v/strong-map.svg)](https://img.shields.io/node/v/strong-map.svg)
[![Last Commit](https://img.shields.io/github/last-commit/jorma16/strong-map.svg)](https://img.shields.io/github/last-commit/jorma16/strong-map.svg)

[![NPM](https://nodei.co/npm/strong-map.png?downloads=true)](https://www.npmjs.com/package/strong-map/)

This library is made to extend the functionality of Javascript's [Map](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) to solve common problems.

## What more?
### Improved `get` function
If you usually use the Map objeasdct in your life and you have used objects like keys, sure that you are been frustrated with the `.get` method because you only can get a value if the key is **THE SAME** object, referenced. With this library this doesn't happen, for example:
```javascript
const StrongMap = require('../lib');

// With Vanilla Map
const map = new Map([
  ['Javascript', 'Good'],
  [{ lang: 'PHP' }, 'Bad']
]);

let js = map.get('Javascript');
let php = map.get({ lang: 'PHP' });
console.log(js); // Good
console.log(php); // undefined

// With StrongMap
const strongMap = new StrongMap([
  ['Javascript', 'Good'],
  [{ lang: 'PHP' }, 'Bad']
]);

js = strongMap.get('Javascript');
php = strongMap.get({ lang: 'PHP' });
console.log(js); // Good
console.log(php); // Bad
```

## Maintainers
- [jorma](https://github.com/jorma16)

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