@availity/resolve-url
Version:
Resolve absolute url from relative urls
29 lines (18 loc) • 1.2 kB
Markdown
# @availity/resolve-url
> Resolve URLs to absolute URI/IRI.
[](https://www.npmjs.com/package/@availity/resolve-url)
[](https://www.npmjs.com/package/@availity/resolve-url)
[](https://github.com/Availity/sdk-js/blob/master/packages/resolve-url/package.json)
This library resolves relative IRIs to absolute IRIs given a base IRI, conforming to [RFC3986](https://www.ietf.org/rfc/rfc3986.txt). The code was borrowed from [relative-to-absolute-iri
](https://github.com/rubensorks/relative-to-absolute-iri.js). ~There is an open issue to make the library compatible with IE11: [Issue #5](https://github.com/rubensworks/relative-to-absolute-iri.js/issues/5)~
## Installation
### NPM
```bash
npm install @availity/resolve-url
```
### Yarn
```bash
yarn add @availity/resolve-url
```
## Documentation
Check out more documentation at [availity.github.io](https://availity.github.io/sdk-js/resources/resolve-url)