Socket
Socket
Sign inDemoInstall

@amaui/hash-table

Package Overview
Dependencies
6
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @amaui/hash-table

Hash table


Version published
Weekly downloads
1
Maintainers
1
Created
Weekly downloads
 

Readme

Source

amaui logo

amaui Hash table

Hash table


MIT license     Production ready     UMD 1.5kb gzipped     100% test cov     Browser and Nodejs

Very simple code     Modern code     Junior friendly     Typescript     Made with :yellow_heart:


Getting started

Add

  // yarn
  yarn add @amaui/hash-table

  // npm
  npm install @amaui/hash-table

Use cases

  • Indexing data
  • Caching
  • Storage for data, for efficient quering
  • Storing relationships between data
  • etc.

Use

  import AmauiHashTable from '@amaui/hash-table';

  // Make a new hash table instance
  const amauiHashTable = new AmauiHashTable();

  // Add values
  amauiHashTable.set('a', 14).set('a1', 114);

  amauiHashTable.get('a');
  // 14

  amauiHashTable.get('a14');
  // undefined

  // Remove
  amauiHashTable.remove('a');
  // true

  amauiHashTable.get('a');
  // undefined

Dev

Install

  yarn

Test

  yarn test

Prod

Build

  yarn build

Docs

Might be soon...

Keywords

FAQs

Last updated on 22 Dec 2022

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