# node-hm

> [![npm package](https://nodei.co/npm/node-hm.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/node-hm/)

Latest version **1.0.1** (published 2017-10-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install node-hm
pnpm add node-hm
yarn add node-hm
bun add node-hm
```

## 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.1 |
| Published | 2017-10-01 |
| First published | 2017-10-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | sthupukari |

## Links

- npm: https://www.npmjs.com/package/node-hm
- npm.io page: https://npm.io/package/node-hm

## Recent versions

- 1.0.1 (latest) — 2017-10-01
- 1.0.0 — 2017-10-01

## README

[![npm package](https://nodei.co/npm/node-hm.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/node-hm/)

# node-hm
> A simple implementation of a Hashmap written in JavaScript.

[![NPM Version][npm-image]][npm-url]
[![Downloads Stats][npm-downloads]][npm-url]

HM is a simple implementation of a Hashmap written in JavaScript. 

Features: 
- Written in ES6, transpiled using Babel
- Statically type checked with Flow (https://flow.org/)
- 100% code coverage 

## Installation

OS X & Linux:

```sh
npm install node-hm --save
```

## Usage example

```javascript
import HM from 'node-hm'

// Initialize with size of hashmap
var hm = new HM(10);
hm.set("key", "value") // => true
hm.get("key") // => "value"
hm.delete("key") // => "value"
hm.get("key") // => null
hm.load() // => 0.1
```

## Development setup

**Requirements**

- Install Node.js (https://nodejs.org/en/download/)

To install developer dependencies, run:

```sh
npm install
```

## Testing

To execute linting, type checking, and run tests, run:

```sh
npm run test
```

## Release History

* 1.0.1
    * First and final release

## Contributing

1. Fork it (https://github.com/helloworld/node-hm)
2. Create your feature branch (`git checkout -b feature/fooBar`)
3. Commit your changes (`git commit -am 'Add some fooBar'`)
4. Push to the branch (`git push origin feature/fooBar`)
5. Create a new Pull Request

<!-- Markdown link & img dfn's -->
[npm-image]: https://img.shields.io/npm/v/node-hm.svg?style=flat-square
[npm-url]: https://npmjs.org/package/node-hm
[npm-downloads]: https://img.shields.io/npm/dm/node-hm.svg?style=flat-square

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