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

@jridgewell/resolve-uri 3.1.0

Resolve a URI relative to an optional base URI
Package summary
Share
0
issues
1
license
1
MIT
Package created
14 Jul 2019
Version published
5 Jul 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/resolve-uri@3.1.0
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/resolve-uri 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does @jridgewell/resolve-uri do?

The npm package "@jridgewell/resolve-uri" is an invaluable tool for those looking to resolve a URI relative to an optional base URI. With its ability to resolve a spectrum of absolute URIs, protocol-relative URIs, absolute paths and relative paths. The tool ensures any input is appropriately normalized, inherits a base's protocol, inherits a base's origin, or is joined with the base, depending on the input provided and the base context.

How do you use @jridgewell/resolve-uri?

With clear usage guidelines, getting started with this powerful tool is straightforward. First, the package needs to be installed, which can be done through the command line prompt npm install @jridgewell/resolve-uri.

The main function provided by this package is resolve(input: string, base?: string): string;, which takes in two strings as parameters, the input URL and an optional base URL.

Here is an example of its usage:

import resolve from '@jridgewell/resolve-uri';

resolve('foo', 'https://example.com'); // => 'https://example.com/foo'

As seen in the example, we import the resolve function from the package, which we then use to resolve the relative URI 'foo' to the base URI 'https://example.com', resulting in the new URI 'https://example.com/foo'.

Where are the @jridgewell/resolve-uri docs?

Documentation and further details about @jridgewell/resolve-uri are contained in its readme file on GitHub repository. For intricate understanding of this package and its offerings, consider diving into the explanation and resolution section provided in the readme available at this GitHub URL - git+https://github.com/jridgewell/resolve-uri.git. It provides an exemplary table of possible input and base combinations, and how this package processes and resolves those to return the expected URI strings.