# express-param-capture

> process request parameters with regexp

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

## Install

```sh
npm install express-param-capture
pnpm add express-param-capture
yarn add express-param-capture
bun add express-param-capture
```

## 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 | 2015-03-03 |
| First published | 2015-03-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | David Keijser |
| Maintainers | keis |

## Links

- npm: https://www.npmjs.com/package/express-param-capture
- Repository: https://github.com/keis/express-param-capture
- Issues: https://github.com/keis/express-param-capture/issues
- npm.io page: https://npm.io/package/express-param-capture

## Recent versions

- 1.0.0 (latest) — 2015-03-03

## README

# express-param-capture

[![NPM Version][npm-image]](https://npmjs.org/package/express-param-capture)
[![Build Status][travis-image]](https://travis-ci.org/keis/express-param-capture)
[![Coverage Status][coveralls-image]](https://coveralls.io/r/keis/express-param-capture?branch=master)

Process request parameters with regexp and use the resulting capturing group in
the routes.

like [express-params](https://www.npmjs.com/package/express-params) but works
properly in recent express releases where the use of `app.param(fun)` has been
deprecated.

# Usage

    app = express()
    capture = require('express-param-capture')

    app.param('locale', capture(/([a-z]{2})_([A-Z]{2})/));
    app.get('/:locale', function (req, res) {
        res.status(200).send(req.params.locale[1] + ' - ' + req.params.locale[2]);
    });


[npm-image]: https://img.shields.io/npm/v/exress-param-capture.svg?style=flat
[travis-image]: https://img.shields.io/travis/keis/express-param-capture.svg?style=flat
[coveralls-image]: https://img.shields.io/coveralls/keis/express-param-capture.svg?style=flat

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