side-channel-map
npmv1.0.1TypeScriptStore information about any JS value in a side channel, using a Map
Adopt with care
side-channel-map is usable, with caveats. Last published 638 days ago. 2 releases in the last 2 years.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- CMaintenance: grade C, Fair — worth a look.
Last published 638 days ago. 2 releases in the last 2 years.
- BWeight: grade B, Good.
Pulls in 13 transitive packages, about 292 KB installed (at least — some of the tree is still being crawled).
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding side-channel-map to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Part of this dependency tree has not been crawled yet, so these figures are a lower bound rather than a final total.
Licenses in the dependency tree
Every license you inherit by installing side-channel-map, not just its own. Check this before a legal review, not after.
Compatibility
- Node.js
- node >= 0.4
- Module format
- CommonJS only
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the side-channel-map README.
const assert = require('assert');
const getSideChannelMap = require('side-channel-map');
const channel = getSideChannelMap();
const key = {};
assert.equal(channel.has(key), false);
assert.throws(() => channel.assert(key), TypeError);
channel.set(key, 42);
channel.assert(key); // does not throw
assert.equal(channel.has(key), true);
assert.equal(channel.get(key), 42);Dependencies
Declared by side-channel-map v1.0.1. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (17)
Used by
Popular packages that depend on side-channel-map.
Relationship graph
Dependencies (left) and dependents (right) of side-channel-map.
Frequently installed together
An AST-based pattern checker for JavaScript.
A simple cache for a few of the JS Error constructors.
string representations of objects in node and the browser
Store information about any JS value in a side channel. Uses WeakMap if available.
Store information about any JS value in a side channel, using a linked list
Robust call-bound JavaScript intrinsics, using `call-bind` and `get-intrinsic`.
Get and robustly cache all JS language-level intrinsics at first require time
Release history
2 releases in the last two years.
| Version | Published | Size | License |
|---|---|---|---|
| 1.0.1latest | 1 year ago | 13 KB | MIT |
| 1.0.0 | 1 year ago | 13 KB | MIT |
Overview
side-channel-map is an npm package that store information about any JS value in a side channel, using a Map. It has 2 known dependents in the graph. The latest version is 1.0.1, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need store information about any JS value in a side channel, using a Map and value a focused solution.
When not to use it
Consider an alternative if you need to minimize your dependency tree, or if a more actively-maintained option better fits your npm stack.
Pros
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
Cons
- Large dependency tree (21 direct dependencies) increases install size and audit surface.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Funding
Frequently asked questions
Should I use side-channel-map?
side-channel-map is usable, with caveats. Last published 638 days ago. 2 releases in the last 2 years.
How do I install side-channel-map?
Run `npm install side-channel-map` to add side-channel-map to your npm project.
How many dependencies does side-channel-map have?
side-channel-map declares 21 direct dependencies and pulls in 13 packages in total once its runtime tree is resolved totalling about 292 KB on disk.
What license is side-channel-map released under?
side-channel-map is distributed under the MIT license.
How popular is side-channel-map?
npm does not publish download counts. Within PackageGraph's crawl, 2 known packages depend on side-channel-map.
Is side-channel-map still maintained?
The most recent release of side-channel-map (v1.0.1) was published 1 year ago.
Does side-channel-map run install scripts?
No. side-channel-map does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.