3 [![NPM Version][npm-image]][npm-url]
4 [![NPM Downloads][downloads-image]][downloads-url]
5 [![Node.js Version][node-version-image]][node-version-url]
6 [![Build Status][travis-image]][travis-url]
7 [![Test Coverage][coveralls-image]][coveralls-url]
9 HTTP verbs that Node.js core's HTTP parser supports.
11 This module provides an export that is just like `http.METHODS` from Node.js core,
12 with the following differences:
14 * All method names are lower-cased.
15 * Contains a fallback list of methods for Node.js versions that do not have a
16 `http.METHODS` export (0.10 and lower).
17 * Provides the fallback list when using tools like `browserify` without pulling
18 in the `http` shim module.
29 var methods = require('methods')
34 This is an array of lower-cased method names that Node.js supports. If Node.js
35 provides the `http.METHODS` export, then this is the same array lower-cased,
36 otherwise it is a snapshot of the verbs from Node.js 0.10.
42 [npm-image]: https://img.shields.io/npm/v/methods.svg?style=flat
43 [npm-url]: https://npmjs.org/package/methods
44 [node-version-image]: https://img.shields.io/node/v/methods.svg?style=flat
45 [node-version-url]: https://nodejs.org/en/download/
46 [travis-image]: https://img.shields.io/travis/jshttp/methods.svg?style=flat
47 [travis-url]: https://travis-ci.org/jshttp/methods
48 [coveralls-image]: https://img.shields.io/coveralls/jshttp/methods.svg?style=flat
49 [coveralls-url]: https://coveralls.io/r/jshttp/methods?branch=master
50 [downloads-image]: https://img.shields.io/npm/dm/methods.svg?style=flat
51 [downloads-url]: https://npmjs.org/package/methods