Package Exports
- @awesomeorganization/hyperlink
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@awesomeorganization/hyperlink) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
hyperlink
💥 [ESM] The hyperlink constuctor according to rfc1738, rfc1808, rfc2396, rfc3986 and whatwg. Works with Browser and Node.js
Example
import { hyperlink } from '@awesomeorganization/hyperlink'
// The following examples creates the same link
// http://user:pass@example.com:8080/blah?blah=blah#blah
hyperlink({
auth: 'user:pass',
hash: '#blah',
host: 'example.com:8080',
path: '/blah?blah=blah',
protocol: 'http:',
})
hyperlink({
hash: '#blah',
hostname: 'example.com',
password: 'pass',
pathname: '/blah',
port: '8080',
protocol: 'http:',
search: '?blah=blah',
username: 'user',
})
hyperlink({
hash: '#blah',
hostname: 'example.com',
password: 'pass',
pathname: '/blah',
port: '8080',
protocol: 'http:',
query: 'blah=blah',
username: 'user',
})