# http-methods

> Handle multiple methods elegantly

Latest version **1.1.0** (published 2017-03-14) · 0 weekly downloads

## Install

```sh
npm install http-methods
pnpm add http-methods
yarn add http-methods
bun add http-methods
```

## 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.0 |
| Published | 2017-03-14 |
| First published | 2012-09-23 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Author | Raynos |
| Maintainers | raynos |

## Links

- npm: https://www.npmjs.com/package/http-methods
- Repository: https://github.com/Raynos/http-methods
- Issues: https://github.com/Raynos/http-methods/issues
- npm.io page: https://npm.io/package/http-methods

## Dependencies (2)

- [body](https://npm.io/package/body.md) ~0.1.0
- [content-types](https://npm.io/package/content-types.md) ~0.1.0

## Recent versions

- 1.1.0 (latest) — 2017-03-14
- 1.0.0 — 2014-12-17
- 0.1.0 — 2012-09-23

## README

# http-methods [![build status][1]][2]

Handle multiple methods elegantly

## Example

    var methods = require("http-methods")
        , http = require("http")

    http.createServer(methods({
        GET: function (req, res)  { res.end("get") }
        , POST: function (req, res) { res.end("post") }
    })).listen(8080)

## Installation

`npm install http-methods`

## Tests

`npm test`

## Contributors

 - Raynos

## MIT Licenced

  [1]: https://secure.travis-ci.org/Raynos/http-methods.png
  [2]: http://travis-ci.org/Raynos/http-methods

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