get-redirects
Get the urls redirected to when loading a url.
Last updated 9 months ago by richienb .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install get-redirects 
SYNC missed versions from official npm registry.

Get Redirects Travis CI Build Status

Get the urls redirected to when loading a url.

NPM Badge

Install

npm install get-redirects

Usage

const getRedirects = require("get-redirects");

(async () => {
    await getRedirects("https://google.com")
    //=> ['https://www.google.com/']

    await getRedirects("http://richienb.github.io")
    //=> ['http://www.richie-bendall.ml/', 'https://www.richie-bendall.ml/']
})()

API

getRedirects(url)

url

Type: string

The URL to check.

Current Tags

  • 1.0.0                                ...           latest (9 months ago)

1 Versions

  • 1.0.0                                ...           9 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (4)
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |