
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@ryanmorr/fastmap
Advanced tools
Accelerated hash maps
Creates an efficient key/value store by instantiating a constructor function with an empty prototype. This is faster than using Object.create(null) to create "bare" objects, particularly in V8, making it the superior alternative for hash maps in memory intensive tasks. Full credit to Node.js for the technique.
Download the CJS, ESM, UMD versions or install via NPM:
npm install @ryanmorr/fastmap
Use just like an object literal:
import fastmap from '@ryanmorr/fastmap';
const map = fastmap();
map.foo = 1;
map.bar = 2;
{}.toString.call(map); //=> "[object Object]"
JSON.stringify(map); //=> "{\"foo\":1,\"bar\":2}"
Unlike object literals, the object is empty:
'toString' in {}; //=> true
'toString' in fastmap(); //=> false
for (const key in map) {
// `hasOwnProperty` check is unnecessary
}
Provide an object to pre-populate the map:
const map = fastmap(foo: 1, bar: 2, baz: 3});
map.foo; //=> 1
map.bar; //=> 2
map.baz; //=> 3
This project is dedicated to the public domain as described by the Unlicense.
FAQs
Accelerated hash maps
We found that @ryanmorr/fastmap 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.