# redman-relative-urls

> A way of rewriting urls relative to where the request was served from

Latest version **1.1.1** (published 2015-10-19) · 0 weekly downloads

## Install

```sh
npm install redman-relative-urls
pnpm add redman-relative-urls
yarn add redman-relative-urls
bun add redman-relative-urls
```

## 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.1.1 |
| Published | 2015-10-19 |
| First published | 2015-10-19 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | eckoit |

## Links

- npm: https://www.npmjs.com/package/redman-relative-urls
- Repository: https://github.com/ryanramage/redman-relative-urls
- Issues: https://github.com/ryanramage/redman-relative-urls/issues
- npm.io page: https://npm.io/package/redman-relative-urls

## Dependencies (2)

- [URIjs](https://npm.io/package/URIjs.md) ^1.16.0
- [useragent](https://npm.io/package/useragent.md) ^2.1.7

## Recent versions

- 1.1.1 (latest) — 2015-10-19

## README

# redman-relative-urls

A way of rewriting urls relative to where the request was served from. Make apps more portable 
to different paths, and testing configurations.

```
npm install redman-relative-urls
```

## Usage

``` js
var config = {
  widget_path: 'login'
  proxy_path: '/widget_proxy',
  app_path: '/app'
}
var relative = require('redman-relative-urls')(config)
relative(req, {
   asset_url: '/static'
})
```

## License

MIT

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