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 Feb 16, 2024 via pnpm

side-channel 1.0.4

Store information about any JS value in a side channel. Uses WeakMap if available.
Package summary
Share
0
issues
1
license
14
MIT
Package created
2 Dec 2019
Version published
29 Dec 2020
Maintainers
1
Total deps
14
Direct deps
3
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
14 Packages, Including:
call-bind@1.0.7
define-data-property@1.1.4
es-define-property@1.0.0
es-errors@1.3.0
function-bind@1.1.2
get-intrinsic@1.2.4
gopd@1.0.1
has-property-descriptors@1.0.2
has-proto@1.0.1
has-symbols@1.0.3
hasown@2.0.1
object-inspect@1.13.1
set-function-length@1.2.1
side-channel@1.0.4
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

3
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
call-bind1.0.721.6 kBMIT
prod
get-intrinsic1.2.412.21 kBMIT
prod
object-inspect1.13.125.91 kBMIT
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.