Skip to content

Port of jshashtable as nodejs package. jshashtable is a standalone implementation of hash table in JavaScript. It associates keys with values, and allows any object to be used as the key (unlike JavaScript's built-in Object, which only allows strings as property names).

Notifications You must be signed in to change notification settings

timdown/jshashtable-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSHashtable for nodejs

PLEASE NOTE NodeJS now supports Map which achieves natively what this library attempts to do.

Port of jshashtable as nodejs package. jshashtable is a standalone implementation of hash table in JavaScript. It associates keys with values, and allows any object to be used as the key (unlike JavaScript's built-in Object, which only allows strings as property names).

Original website: http://www.timdown.co.uk/jshashtable/

Installation:

npm install jshashtable

Usage:

var Hashtable = require('jshashtable');
var typesHash = new Hashtable();

typesHash.put("A string", "string");
typesHash.put(1, "number");

var o = {};
typesHash.put(o, "object");

console.log( typesHash.get(o) ); // "object"

About

Port of jshashtable as nodejs package. jshashtable is a standalone implementation of hash table in JavaScript. It associates keys with values, and allows any object to be used as the key (unlike JavaScript's built-in Object, which only allows strings as property names).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published