# rekvest

> NodeJS request URL parser

Latest version **0.1.7** (published 2024-08-01) · MIT license · 0 weekly downloads

## Install

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

## 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.7 |
| Published | 2024-08-01 |
| First published | 2020-10-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Vidar Eldøy |
| Maintainers | eldoy |

## Links

- npm: https://www.npmjs.com/package/rekvest
- Repository: https://github.com/eldoy/rekvest
- Homepage: https://github.com/eldoy/rekvest#readme
- Issues: https://github.com/eldoy/rekvest/issues
- npm.io page: https://npm.io/package/rekvest

## Recent versions

- 0.1.7 (latest) — 2024-08-01
- 0.1.6 — 2024-08-01
- 0.1.5 — 2023-05-15
- 0.1.4 — 2021-03-09
- 0.1.3 — 2021-02-24
- 0.1.2 — 2020-10-30
- 0.1.1 — 2020-10-30
- 0.1.0 — 2020-10-30

## README

# Rekvest

NodeJS request URL parser. Modifies the request object to include:

* Proxy host and protocol
* If you're on https or not
* Remote IP address
* Parsed query string
* Everything else that the standard url includes

Uses the new syntax in NodeJS `url`.

### Install
```
npm i rekvest
```

### Usage
```
var rekvest = require('rekvest')

rekvest(req)

# URL: http://localhost:3000/?hello=1

req.href: 'http://localhost:3000/?hello=1'
req.origin: 'http://localhost:3000'
req.protocol: 'http:'
req.username: ''
req.password: ''
req.host: 'localhost:3000'
req.hostname: 'localhost'
req.port: '3000'
req.pathname: '/'
req.search: '?hello=1'
req.searchParams: URLSearchParams { 'hello' => '1' }
req.hash: ''
req.ip: '127.0.0.1'
req.query: { hello: '1' }
req.path: '/?hello=1'
```

MIT Licensed. Enjoy!

Created by [Eldøy Projects](https://eldoy.com)

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