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

@jridgewell/sourcemap-codec 1.4.14

Encode/decode sourcemap mappings
Package summary
Share
0
issues
1
license
1
MIT
Package created
5 Feb 2022
Version published
26 Jun 2022
Maintainers
1
Total deps
1
Direct deps
0
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
1 Packages, Including:
@jridgewell/sourcemap-codec@1.4.14
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

0
All Dependencies CSV
β“˜ This is a list of @jridgewell/sourcemap-codec 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does @jridgewell/sourcemap-codec do?

The npm package @jridgewell/sourcemap-codec is designed to encode and decode the mappings property of a sourcemap. Sourcemaps are challenging to generate and manipulate because the mappings property links the generated code back to the original source. This linkage is encoded using a method called Variable-length quantity. Every segment in the mapping contains offsets rather than absolute indices, making it essential to understand the whole sourcemap to look at a segment. The @jridgewell/sourcemap-codec package simplifies this process.

How do you use @jridgewell/sourcemap-codec?

To use @jridgewell/sourcemap-codec, you first have to install it via npm using the command npm install @jridgewell/sourcemap-codec. Once the package is installed, you can import the encode and decode functions from it in your JavaScript files. Below is an example of its usage:

import { encode, decode } from '@jridgewell/sourcemap-codec';

var decoded = decode(';EAEEA,EAAE,EAAC,CAAE;ECQY,UACC');
var encoded = encode(decoded);

In the above code snippet, decode function is used to decode a string of encoded mappings and encode function is used to encode the resultant array back into a string.

Where are the @jridgewell/sourcemap-codec docs?

The documentation for @jridgewell/sourcemap-codec is available in the readme file in its GitHub repository. There you will find detailed information on how to use it, as well as some benchmarks about its performance.