
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
MK2MT stands for "Map Key to Multiple Types". Unlike JS native `Map` class which can only map keys to one type, MK2MT allows you to map specific keys to corresponding types. More, this type allows you to get values that are sharing the same key with par
MK2MT stands for "Map Key to Multiple Types". Unlike JS native Map class which can only map keys
to one type, MK2MT allows you to map specific keys to corresponding types. More, this type allows
you to get values that are sharing the same key with partially inputted keys.
import { MK2MT } from 'MK2MT';
const tmp = new MK2MT<
| [["a" | "b" ], number ] // map "a" and "b" to number
| [["c" ], string ] // map "c" to string
| [["a", "b" ], boolean] // map ("a", "b") to boolean (order doesn't matter)
| [["a", "d"|"e"], number ] // map ("a", "d") and ("a", "e") to number
>();
tmp.set(1, "a"); // OK
tmp.set(2, "b"); // OK
tmp.set(3, "c"); // Error
tmp.set(4, "d"); // Error
tmp.set(5, "a", "d"); // OK
tmp.fuzzyGet("a"); // type is undefined | number[] | boolean[]
tmp.fuzzyGet("a", "d"); // type is undefined | number[]
tmp.fuzzyGet("a", "e"); // type is undefined | number[]
tmp.fuzzyGet("d"); // type is undefined | number[]
FAQs
MK2MT stands for "Map Key to Multiple Types". Unlike JS native `Map` class which can only map keys to one type, MK2MT allows you to map specific keys to corresponding types. More, this type allows you to get values that are sharing the same key with par
We found that mk2mt demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.