Socket
Socket
Sign inDemoInstall

big-associative

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    big-associative

Big associative containers who can store over 16M elements


Version published
Weekly downloads
14
decreased by-17.65%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Big Associative

Outline

Native associative containers of the JavaScript, they only can store under 224 elements.

The big-associative provides extended associative containers who can ignore the limitations. With the below components, you can store infinite elements until the memory overflow.

JS NativeExtended
MapBigMap
SetBigSet
WeakMapBigWeakMap
WeakSetBigWeakSet

Installation

NPM Module

Installing the big-associative is very easy. Just use the npm install command.

npm install --save big-associative

Usage

Just import big-associative and use any class what you want:

import { BigMap, BigSet, BigWeakMap, BigWeakSet } from "big-associative";

function main(): void
{
    const map: BigMap<number, number> = new BigMap();
    for (let i: number = 0; i < Number.MAX_INTEGER; ++i)
        map.set(i, i);
}

Keywords

FAQs

Last updated on 23 Oct 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc