Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

express-router-methods

matt-hahn103MIT1.0.3

List of methods that are being used for express router api handling (like get, post, put, ...) from express.Router()

express, api, app, http, router, express.Router(), methods, express router methods

readme

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',
]
*/