express-router-methods

1.0.3 • Public • Published

Express Router Methods

List of methods that are being used for express router api handling (from express.Router()):

  • acl
  • all
  • bind
  • checkout
  • connect
  • copy
  • delete
  • get
  • head
  • link
  • lock
  • m-search
  • merge
  • mkactivity
  • mkcalendar
  • mkcol
  • move
  • notify
  • options
  • param
  • patch
  • post
  • propfind
  • proppatch
  • purge
  • put
  • rebind
  • report
  • search
  • subscribe
  • trace
  • unbind
  • unlink
  • unlock
  • unsubscribe
  • use

Install

npm install --save express-router-methods

or with yarn:

yarn add express-router-methods

Usage

import methods from 'express-router-methods'

console.log(methods)
/*
[
  'acl',
  'all',
  'bind',
  'checkout',
  'connect',
  'copy',
  'delete',
  'get',
  'head',
  'link',
  'lock',
  'm-search',
  'merge',
  'mkactivity',
  'mkcalendar',
  'mkcol',
  'move',
  'notify',
  'options',
  'param',
  'patch',
  'post',
  'propfind',
  'proppatch',
  'purge',
  'put',
  'rebind',
  'report',
  'search',
  'subscribe',
  'trace',
  'unbind',
  'unlink',
  'unlock',
  'unsubscribe',
  'use',
]
*/

Package Sidebar

Install

npm i express-router-methods

Weekly Downloads

1

Version

1.0.3

License

MIT

Last publish

Collaborators

  • matthahn