# resolve-redirects-efficient

> A JS module for efficiently resolving HTTP/HTTPS redirects

Latest version **0.0.8** (published 2022-10-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install resolve-redirects-efficient
pnpm add resolve-redirects-efficient
yarn add resolve-redirects-efficient
bun add resolve-redirects-efficient
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.0.8 |
| Published | 2022-10-07 |
| First published | 2022-10-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 9.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Nitzan Weidenfeld |
| Maintainers | devsbedevin |
| Keywords | http, https, redirect, redirects, js, nodejs, link, links |

## Links

- npm: https://www.npmjs.com/package/resolve-redirects-efficient
- Repository: https://github.com/vaiden/resolve-redirects-efficient
- Homepage: https://github.com/vaiden/resolve-redirects-efficient#readme
- Issues: https://github.com/vaiden/resolve-redirects-efficient/issues
- npm.io page: https://npm.io/package/resolve-redirects-efficient

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 0.0.8 (latest) — 2022-10-07
- 0.0.6 — 2022-10-07
- 0.0.4 — 2022-10-07

## README

# resolve-redirects-efficient
A (node)JS module for efficiently resolving HTTP/HTTPS redirects.

## What makes this _efficient_
Unlike the competition, this module does not request the URL itself, but rather performs an *HTTP HEAD* request in order to receive the headers only.

Only in cases where the server misbehaves ([😮‍💨Amazon😮‍💨](https://stackoverflow.com/q/73413321/606351)) it falls back to good old but heavy *HTTP GET*.

Also there are no dependencies.

## Installation
```bash
npm install resolve-redirects-efficient
```

## Usage
```javascript
import resolveRedirect from 'resolve-redirect-efficient'

resolveRedirect('http://bit.ly/1TCI5N0')
  .then(url => console.log(url))
```

## Credits
This is heavily based on the now defunct [resolve-redirect](https://www.npmjs.com/package/resolve-redirect) by [@Cezary](https://github.com/cezary/).

## Say hello!
Come say hello @ [devsbedevin.net](https://www.devsbedevin.net/)

## License
MIT

---
_Source: https://npm.io/package/resolve-redirects-efficient · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
