Socket
Socket
Sign inDemoInstall

http-methods

Package Overview
Dependencies
4
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    http-methods

Handle multiple methods elegantly


Version published
Weekly downloads
3.1K
decreased by-14.61%
Maintainers
1
Install size
71.3 kB
Created
Weekly downloads
 

Readme

Source

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

FAQs

Last updated on 14 Mar 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc