Socket
Socket
Sign inDemoInstall

@essentials/one-key-map

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @essentials/one-key-map

A Map-like data structure that only stores the most recently set key/value pair


Version published
Weekly downloads
10K
decreased by-13.49%
Maintainers
1
Install size
8.60 kB
Created
Weekly downloads
 

Readme

Source

@essentials/one-key-map

Bundlephobia Types NPM Version MIT License

npm i @essentials/one-key-map

A Map-like data structure that only stores the most recently set key/value pair

Quick Start

import OneKeyMap from '@essentials/one-key-map'

const map = new OneKeyMap()
map.set('foo', 'bar')
map.get('foo')
// bar
map.set('foo2', 'bar2')
map.get('foo')
// undefined
map.get('foo2')
// bar2

LICENSE

MIT

Keywords

FAQs

Last updated on 05 Jun 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