side-channel
npmv1.1.1TypeScriptStore information about any JS value in a side channel. Uses WeakMap if available.
Overview
side-channel is an npm package that store information about any JS value in a side channel. Uses WeakMap if available. It is extremely widely used, with about 136.8M downloads per week and 1 known dependents in the graph. The latest version is 1.1.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. Uses WeakMap if available and value a battle-tested, widely-adopted 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
- Large, well-established user base (136.8M weekly downloads).
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
Cons
- Large dependency tree (20 direct dependencies) increases install size and audit surface.
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of side-channel.
Dependencies
Runtime (5)
Dev (15)
Used by
Popular packages that depend on side-channel.
Alternatives to side-channel
Remap sequential sourcemaps through transformations to point at the original source code
Generate source maps
Trace the original position through a source map
Converts a source-map from/to different formats and allows adding/changing properties.
Get the metadata from a Google Cloud Platform environment
Frequently installed together
An AST-based pattern checker for JavaScript.
The semantic version parser used by npm.
`Object.defineProperty`, but not IE 8's broken one.
Convert character encodings in pure javascript.
Runtime typescript and ESM support for Node.js
the most correct and second fastest glob implementation in JavaScript
Version history
| Version | Published | License |
|---|---|---|
| 1.1.1latest | 1 month ago | MIT |
| 1.1.0 | 1 year ago | MIT |
| 1.0.6 | 2 years ago | MIT |
| 1.0.5 | 2 years ago | MIT |
| 1.0.4 | 5 years ago | MIT |
| 1.0.3 | 5 years ago | MIT |
| 1.0.2 | 6 years ago | MIT |
| 1.0.1 | 6 years ago | MIT |
Maintainers
Funding
Frequently asked questions
How do I install side-channel?
Run `npm install side-channel` to add side-channel to your npm project.
What license is side-channel released under?
side-channel is distributed under the MIT license.
How popular is side-channel?
side-channel has approximately 136,796,481 downloads per week and 1 known dependent packages.