1.0.1 • Published 7 years ago

node-hm v1.0.1

Weekly downloads
1
License
MIT
Repository
-
Last release
7 years ago

npm package

node-hm

A simple implementation of a Hashmap written in JavaScript.

NPM Version Downloads Stats

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:

npm install node-hm --save

Usage example

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

To install developer dependencies, run:

npm install

Testing

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

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