Noteworthy Programming Masterpiece
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

http-methods

1.1.0 • Public • Published

http-methods build status

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

Keywords

none

install

npm i http-methods

Downloadsweekly downloads

1,464

version

1.1.0

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar