source: trip-planner-front/node_modules/methods/README.md@ 76712b2

Last change on this file since 76712b2 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.7 KB
Line 
1# Methods
2
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]
8
9HTTP verbs that Node.js core's HTTP parser supports.
10
11This module provides an export that is just like `http.METHODS` from Node.js core,
12with the following differences:
13
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.
19
20## Install
21
22```bash
23$ npm install methods
24```
25
26## API
27
28```js
29var methods = require('methods')
30```
31
32### methods
33
34This is an array of lower-cased method names that Node.js supports. If Node.js
35provides the `http.METHODS` export, then this is the same array lower-cased,
36otherwise it is a snapshot of the verbs from Node.js 0.10.
37
38## License
39
40[MIT](LICENSE)
41
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
Note: See TracBrowser for help on using the repository browser.