weak-dictionary

0.24.0 • Public • Published

Weak-Dictionary

A memory-safe dictionary implementation using the CoreJS WeakMap polyfill

Why?

ES6 does not contain a weak dictionary API that tracks key's:

Naturally, we will need a Dictionary implementation that allows managed key tracking without preventing GC in various JS runtimes.

Usage

Install:

npm install weak-dictionary

Use:

var weakDict = require('weak-dictionary');
var dict = new weakDict();

Profit!


Build Status Build Status Dependency Status devDependency Status yo

Dependencies (0)

    Dev Dependencies (11)

    Package Sidebar

    Install

    npm i weak-dictionary

    Weekly Downloads

    0

    Version

    0.24.0

    License

    none

    Last publish

    Collaborators

    • toddpi314