</>PackageGraphPackageGraph

side-channel-map

npmv1.0.1TypeScript

Store 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.

4
Direct dependencies

Runtime packages this one declares itself.

13
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

292 KB
Install size

Unpacked size of this package plus its entire runtime tree.

2
Tree depth

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

MIT

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);
Example truncated — see the full README.

Dependencies

Declared by side-channel-map v1.0.1. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (17)

@arethetypeswrong/cli ^0.17.1@ljharb/eslint-config ^21.1.1@ljharb/tsconfig ^0.2.2@types/get-intrinsic ^1.2.3@types/object-inspect ^1.13.0@types/tape ^5.6.5auto-changelog ^2.5.0eclint ^2.8.1encoding ^0.1.13eslint =8.8.0evalmd ^0.0.19in-publish ^2.0.1npmignore ^0.3.1nyc ^10.3.2safe-publish-latest ^2.0.0tape ^5.9.0typescript next

Used by

Popular packages that depend on side-channel-map.

Relationship graph

Dependencies (left) and dependents (right) of side-channel-map.

Frequently installed together

Release history

2 releases in the last two years.

Recent versions of side-channel-map
VersionPublishedSizeLicense
1.0.1latest1 year ago13 KBMIT
1.0.01 year ago13 KBMIT

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.