methods
    Overview
    Documentation
    Insights
    Code
    Contributors
    Dependencies
    Alternatives

methods

HTTP methods that node supports

1.1.2  •  Updated 2 years ago  •  by jshttp  •  MIT License

NPM Version NPM Downloads Node.js Version Build Status Test Coverage

HTTP verbs that Node.js core’s HTTP parser supports.

This module provides an export that is just like http.METHODS from Node.js core, with the following differences:

  • All method names are lower-cased.
  • Contains a fallback list of methods for Node.js versions that do not have a http.METHODS export (0.10 and lower).
  • Provides the fallback list when using tools like browserify without pulling in the http shim module.

Install

$ npm install methods

API

var methods = require('methods')

methods

This is an array of lower-cased method names that Node.js supports. If Node.js provides the http.METHODS export, then this is the same array lower-cased, otherwise it is a snapshot of the verbs from Node.js 0.10.

License

MIT

How often do you use dark themes on other websites?

Popularity

Weekly Downloads
9.1M
Stars
139

Maintenance

Development

Last ver 4 years ago
Created 8 years ago
Last commit 1 year ago
17 days between commits

Technology

Node version: null
0 unpacked

Compliance

MIT License
OSI Approved
0 vulnerabilities

Contributors

10 contributors
Douglas Christopher Wilson
Maintainer, 84 commits
TJ Holowaychuk
Maintainer, 7 commits, 4 merges
Works at Apex
Jonathan Ong
Maintainer, 2 commits, 1 merges
Works at dollarshaveclub
Blake Embrey
Maintainer, 1 commits, 1 PRs
Works at opendoor-labs
Forbes Lindesay
1 commits, 1 PRs
Works at ThreadsStyling
Jérémy Lal
1 commits, 2 PRs
Works at EDA SARL

Tags

http
methods
Ready for the next level?
Join Openbase's founding team to help us build the ultimate open-source app store, work with the latest technologies, and enjoy great culture, impact and autonomy
Openbase helps developers choose among and use millions of open-source packages, so they can build amazing products faster.
© 2020 Devstore, Inc.