New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

mild-map

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mild-map

A WeakMap that supports any value, it holds strong references to primitives, and weak references to objects.

latest
Source
npmnpm
Version
1.2.0
Version published
Maintainers
1
Created
Source

MildMap

A WeakMap that supports any value, it holds strong references to primitives, and weak references to objects.

Install

npm install mild-map

Usage

It has the same API of a WeakMap, except that it just works with primitives too.

It also implements the size property, like a Map.

It also implements all the iteration methods, like a Map.

License

MIT © Fabio Spampinato

Keywords

weak

FAQs

Package last updated on 02 Jan 2026

Did you know?

Socket

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