Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Apr 4, 2024 via pnpm

side-channel 1.0.3

Store information about any JS value in a side channel. Uses WeakMap if available.
Package summary
Share
0
issues
1
license
66
MIT
Package created
2 Dec 2019
Version published
23 Aug 2020
Maintainers
1
Total deps
66
Direct deps
1
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
66 Packages, Including:
array-buffer-byte-length@1.0.1
arraybuffer.prototype.slice@1.0.3
available-typed-arrays@1.0.7
call-bind@1.0.7
data-view-buffer@1.0.1
data-view-byte-length@1.0.1
data-view-byte-offset@1.0.0
define-data-property@1.1.4
define-properties@1.2.1
es-abstract@1.23.3
es-define-property@1.0.0
es-errors@1.3.0
es-object-atoms@1.0.0
es-set-tostringtag@2.0.3
es-to-primitive@1.2.1
for-each@0.3.3
function-bind@1.1.2
function.prototype.name@1.1.6
functions-have-names@1.2.3
get-intrinsic@1.2.4
get-symbol-description@1.0.2
globalthis@1.0.3
gopd@1.0.1
has-bigints@1.0.2
has-property-descriptors@1.0.2
has-proto@1.0.3
has-symbols@1.0.3
has-tostringtag@1.0.2
hasown@2.0.2
internal-slot@1.0.7
is-array-buffer@3.0.4
is-bigint@1.0.4
is-boolean-object@1.1.2
is-callable@1.2.7
is-data-view@1.0.1
is-date-object@1.0.5
is-negative-zero@2.0.3
is-number-object@1.0.7
is-regex@1.1.4
is-shared-array-buffer@1.0.3
is-string@1.0.7
is-symbol@1.0.4
is-typed-array@1.1.13
is-weakref@1.0.2
isarray@2.0.5
object-inspect@1.13.1
object-keys@1.1.1
object.assign@4.1.5
possible-typed-array-names@1.0.0
regexp.prototype.flags@1.5.2
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

1
All Dependencies CSV
β“˜ This is a list of side-channel 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
es-abstract1.23.32.27 MBMIT
prod

Visualizations

Frequently Asked Questions

What does side-channel do?

The "side-channel" is a noteworthy npm package in JavaScript that facilitates storing information about any JavaScript value in a side channel. Notably, it leverages the WeakMap if accessible. Using side-channel has been a go-to solution for many developers aiming to increase the efficiency of their JavaScript code by storing and retrieving data on the fly.

How do you use side-channel?

To use side-channel, you first need to install the package from npm using the typical installation command line: npm install side-channel. Once installed, it can be imported into your JavaScript file using either RequireJS or ES6 import. Here is a basic example of how you can use side-channel:

// Import SideChannel with RequireJS
const SideChannel = require('side-channel');

// Or with ES6
import SideChannel from 'side-channel';

// Set up a new SideChannel
const sideChannel = new SideChannel();

const obj = {};

// Set a SideChannel value
sideChannel.set(obj, 'Hello world!');

// Get a SideChannel value
console.log(sideChannel.get(obj)); // Prints: 'Hello world!'

In this example, a new SideChannel object is created, then a value ('Hello world!') is set for a JavaScript object (obj). This value is then retrieved and logged.

Where are the side-channel docs?

While the npm page for side-channel provides some basic information about the package, the most comprehensive documentation for side-channel is found on the GitHub page. There you can find detailed information about side-channel's methods and applications, as well as additional resources and links to explore for further learning.