Package Exports
- reachable-url
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 (reachable-url) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
reachable-url
Given an url resolve it as fast as possible.
Given an URL, it will be resolved fastest as possible.
It will be performing different HTTP requests in parallel (GET, HEAD) and it will return the first response to respond.
Because of that, don't use this module for consume body because it not always be available.
Install
$ npm install reachable-url --saveUsage
;(async() => {
const reachableUrl = require('reachable-url')
const { url } = await reachableUrl('https://googe.com', { folloRedirects: false })
})()API
reachableUrl(input, [options])
url
Required
Type: string
The target URL to be resolved.
options
Same as got#options
License
reachable-url © Kiko Beats, released under the MIT License.
Authored and maintained by Kiko Beats with help from contributors.
kikobeats.com · GitHub Kiko Beats · Twitter @Kikobeats