# froute-picker

> Picking and matching module used by froute.

Latest version **0.0.10** (published 2015-02-09) · 0 weekly downloads

## Install

```sh
npm install froute-picker
pnpm add froute-picker
yarn add froute-picker
bun add froute-picker
```

## 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.10 |
| Published | 2015-02-09 |
| First published | 2013-11-04 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.8.x |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Lee Crossley |
| Maintainers | leecrossley |
| Keywords | froute, route, routing, url, rest, restful, api, web service |

## Links

- npm: https://www.npmjs.com/package/froute-picker
- Repository: git@github.com:leecrossley/froute-picker
- Homepage: http://ilee.co.uk
- Issues: https://github.com/leecrossley/froute-picker/issues
- npm.io page: https://npm.io/package/froute-picker

## Dependencies (1)

- [functional.js](https://npm.io/package/functional.js.md) ^0.6.10

## Alternatives

- [express-promise-router](https://npm.io/package/express-promise-router.md) — 736.1K weekly downloads
- [next-usequerystate](https://npm.io/package/next-usequerystate.md) — 29.8K weekly downloads
- [@bitkyc08/opencodex](https://npm.io/package/@bitkyc08/opencodex.md) — 4.6K weekly downloads
- [lynkr](https://npm.io/package/lynkr.md) — 575 weekly downloads
- [baremetal.js](https://npm.io/package/baremetal.js.md) — 42 weekly downloads

## Recent versions

- 0.0.10 (latest) — 2015-02-09
- 0.0.9 — 2014-12-08
- 0.0.8 — 2014-08-16
- 0.0.7 — 2014-08-11
- 0.0.6 — 2014-08-01
- 0.0.5 — 2014-08-01
- 0.0.4 — 2014-06-26
- 0.0.3 — 2014-02-09
- 0.0.2 — 2013-11-04
- 0.0.1 — 2013-11-04

## README

# froute-picker [![Build Status](https://travis-ci.org/leecrossley/froute-picker.png?branch=master)](https://travis-ci.org/leecrossley/froute-picker) [![npm version](https://badge.fury.io/js/froute-picker.png)](https://npmjs.org/package/froute-picker) [![Dependency Status](https://david-dm.org/leecrossley/froute-picker/status.png)](https://david-dm.org/leecrossley/froute-picker#info=dependencies)

froute-picker is a "picking" and "matching" module used by [froute](https://github.com/leecrossley/froute). It picks parameters from url templates matches urls to the templates while assigning parameter values.

## Getting started

### Using npm

```
npm install froute-picker
```

```
var picker = require("froute-picker");
```

## Example

#### Picking parameters from a url template and matching a url to the template

```javascript
var template = "/apple/{type}/size/{size}",
    picked = picker.pick(template),
    matchUrl = picker.match("/apple/gala/size/large");
    result = matchUrl(picked);

expect(result).not.toBeNull();
expect(result.type).toEqual("gala");
expect(result.size).toEqual("large");
```

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