# full-url

> A function that returns the full URL of a request, including the scheme and host.

Latest version **1.0.0** (published 2017-03-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install full-url
pnpm add full-url
yarn add full-url
bun add full-url
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2017-03-11 |
| First published | 2013-10-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Michael Rhodes |
| Maintainers | michaelrhodes |
| Keywords | full, request, url |

## Links

- npm: https://www.npmjs.com/package/full-url
- Repository: git@github.com:michaelrhodes/full-url
- Homepage: https://github.com/michaelrhodes/full-url
- Issues: https://github.com/michaelrhodes/full-url/issues
- npm.io page: https://npm.io/package/full-url

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2017-03-11
- 0.1.1 — 2013-10-27
- 0.0.0 — 2013-10-14

## README

# full-url
full-url is a function that returns the full URL of a request, including the scheme and host.

[![Build status](https://travis-ci.org/michaelrhodes/full-url.png?branch=master)](https://travis-ci.org/michaelrhodes/full-url)

[![Browser support](https://ci.testling.com/michaelrhodes/full-url.png)](https://ci.testling.com/michaelrhodes/full-url)

## Install

```
npm install full-url
```

### Example
#### node
``` js
var server = require('http').createServer
var url = require('full-url')

server(function(request, response) {
  url(request)
  // => http://localhost:1234/[wherever]
  
  response.end()
}).listen(1234)
```

#### browser(ify)
``` js
var url = require('full-url')
var path = '[wherever]' || '/path/to/resource'

url(path)
// => http://whenev.er/[wherever]
```

### License
[MIT](http://opensource.org/licenses/MIT)

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