# mw-parse-url

> Middleware that parses req.url into req.path and req.query

Latest version **0.0.0** (published 2015-04-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install mw-parse-url
pnpm add mw-parse-url
yarn add mw-parse-url
bun add mw-parse-url
```

## 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.0.0 |
| Published | 2015-04-08 |
| First published | 2015-04-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Erin Dachtler |
| Maintainers | download |
| Keywords | middleware, query, parse, path, url |

## Links

- npm: https://www.npmjs.com/package/mw-parse-url
- Repository: https://github.com/download13/mw-parse-url
- Issues: https://github.com/download13/mw-parse-url/issues
- npm.io page: https://npm.io/package/mw-parse-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

- 0.0.0 (latest) — 2015-04-08

## README

# mw-parse-url

Parses the value of `req.url` and puts the path on `req.path` while parsing the query string into an object on `req.query`.

## Install:
	npm i mw-parse-url

## Example:
```javascript
var http = require('http');
var mwUrl = require('mw-parse-url');


http.createServer(function(req, res) {
	mwUrl(req, res);

	res.end('Hello' + req.query.name + '!');
}).listen(80);
```

## License: MIT

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