# resolver

> Resolve URL's

Latest version **0.1.12** (published 2014-06-09) · BSD license · 0 weekly downloads

## Install

```sh
npm install resolver
pnpm add resolver
yarn add resolver
bun add resolver
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.12 |
| Published | 2014-06-09 |
| First published | 2012-07-28 |
| Weekly downloads | 0 |
| License | BSD |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | andris |

## Links

- npm: https://www.npmjs.com/package/resolver
- Homepage: http://github.com/andris9/resolver
- npm.io page: https://npm.io/package/resolver

## Dependencies (2)

- [mime](https://npm.io/package/mime.md) 1.2.11
- [fetch](https://npm.io/package/fetch.md) ~0.3.6

## Recent versions

- 0.1.12 (latest) — 2014-06-09
- 0.1.11 — 2013-08-13
- 0.1.10 — 2013-08-10
- 0.1.9 — 2013-08-09
- 0.1.8 — 2013-01-17
- 0.1.7 — 2013-01-17
- 0.1.6 — 2012-10-07
- 0.1.5 — 2012-10-01
- 0.1.4 — 2012-09-29
- 0.1.3 — 2012-09-29
- 0.1.2 — 2012-09-29
- 0.1.1 — 2012-09-28
- 0.1.0 — 2012-07-28

## README

# Resolver

Url resolver module for Node.JS

This module Resolves destination URLs. Feed it a source url and the resolver returns with the destination url if any redirects happened.

For example

    http://bit.ly/PWoeXs

will be resolved into

    http://www.andrisreinman.com/post/15668406504/eesti-saitide-kodeeringud

Also if the final url has google analytics params (*utm_*), these will be removed.

## Installation

    npm install resolver

## Usage

Use *resolver.resolve(url, callback)*

    var resolver = require("resolver");

    resolver.resolve("http://bit.ly/PWoeXs", function(err, url, filename, contentType){
        console.log(err || url);
    });

## License

**MIT**

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