root / HServer / 00.Server / 00.Program / node_modules / methods / README.md
이력 | 보기 | 이력해설 | 다운로드 (1.65 KB)
| 1 | 39 | HKM | # 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 | |||
| 9 | HTTP verbs that Node.js core's HTTP parser supports. |
||
| 10 | |||
| 11 | This module provides an export that is just like `http.METHODS` from Node.js core, |
||
| 12 | with 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 |
||
| 29 | var methods = require('methods')
|
||
| 30 | ``` |
||
| 31 | |||
| 32 | ### methods |
||
| 33 | |||
| 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. |
||
| 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 |