Sha256: 118d134e8bcd8b81d0a3596e0ded6d10372f9ec1e5df5a5b8b4295923973c7f4

Contents?: true

Size: 1.65 KB

Versions: 70

Compression:

Stored size: 1.65 KB

Contents

# Methods

[![NPM Version][npm-image]][npm-url]
[![NPM Downloads][downloads-image]][downloads-url]
[![Node.js Version][node-version-image]][node-version-url]
[![Build Status][travis-image]][travis-url]
[![Test Coverage][coveralls-image]][coveralls-url]

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

```bash
$ npm install methods
```

## API

```js
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](LICENSE)

[npm-image]: https://img.shields.io/npm/v/methods.svg?style=flat
[npm-url]: https://npmjs.org/package/methods
[node-version-image]: https://img.shields.io/node/v/methods.svg?style=flat
[node-version-url]: https://nodejs.org/en/download/
[travis-image]: https://img.shields.io/travis/jshttp/methods.svg?style=flat
[travis-url]: https://travis-ci.org/jshttp/methods
[coveralls-image]: https://img.shields.io/coveralls/jshttp/methods.svg?style=flat
[coveralls-url]: https://coveralls.io/r/jshttp/methods?branch=master
[downloads-image]: https://img.shields.io/npm/dm/methods.svg?style=flat
[downloads-url]: https://npmjs.org/package/methods

Version data entries

70 entries across 69 versions & 14 rubygems

Version Path
sumomo-0.10.8 data/sumomo/api_modules/node_modules/methods/README.md
optimacms-0.1.61 spec/dummy/node_modules/methods/README.md
sumomo-0.10.4 data/sumomo/api_modules/node_modules/methods/README.md
sumomo-0.10.3 data/sumomo/api_modules/node_modules/methods/README.md
sumomo-0.10.2 data/sumomo/api_modules/node_modules/methods/README.md
sumomo-0.10.1 data/sumomo/api_modules/node_modules/methods/README.md
sumomo-0.10.0 data/sumomo/api_modules/node_modules/methods/README.md
sumomo-0.9.0 data/sumomo/api_modules/node_modules/methods/README.md
sumomo-0.8.22 data/sumomo/api_modules/node_modules/methods/README.md
sumomo-0.8.21 data/sumomo/api_modules/node_modules/methods/README.md
sumomo-0.8.20 data/sumomo/api_modules/node_modules/methods/README.md
sumomo-0.8.17 data/sumomo/api_modules/node_modules/methods/README.md
sumomo-0.8.16 data/sumomo/api_modules/node_modules/methods/README.md
disco_app-0.18.0 test/dummy/node_modules/methods/README.md
disco_app-0.18.2 test/dummy/node_modules/methods/README.md
sumomo-0.8.15 data/sumomo/api_modules/node_modules/methods/README.md
disco_app-0.16.1 test/dummy/node_modules/methods/README.md
sumomo-0.8.14 data/sumomo/api_modules/node_modules/methods/README.md
sumomo-0.8.13 data/sumomo/api_modules/node_modules/methods/README.md
disco_app-0.15.2 test/dummy/node_modules/methods/README.md