Socket
Socket
Sign inDemoInstall

http-method-enum

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    http-method-enum

HTTP methods as a TypeScript enum.


Version published
Weekly downloads
10K
decreased by-6.58%
Maintainers
1
Install size
10.4 kB
Created
Weekly downloads
 

Readme

Source

http-method-enum

HTTP methods as a TypeScript enum.

tslint: Slick code style: Prettier npm semantic-release License

Install

$ npm install http-method-enum

Usage

Node.js / CommonJS:

const { HTTPMethod } = require('http-method-enum')

ESNext / TypeScript:

import { StatusCode } from 'http-method-enum'

if (res.method = HTTPMethod.GET) {
  // ...
}

All current standard HTTP methods are available as follows:

  • CONNECT = 'CONNECT'
  • DELETE = 'DELETE'
  • GET = 'GET'
  • HEAD = 'HEAD'
  • OPTIONS = 'OPTIONS'
  • PATCH = 'PATCH'
  • POST = 'POST'
  • PUT = 'PUT'
  • TRACE = 'TRACE'

News and Updates

Follow @typeslick on Twitter for the latest updates and new project announcements.

Sponsors

Maintainers

License

MIT

Keywords

FAQs

Last updated on 20 Feb 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc