Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

http-const

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http-const - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

package.json
{
"name": "http-const",
"version": "1.0.2",
"version": "1.0.3",
"description": "HTTP constants: methods, protocols, headers, etc.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -1,2 +0,30 @@

# htt-const
HTTP constants: methods, protocols, headers, etc
# http-const
HTTP constants: methods, protocols, headers, content types, etc.
## Install
```
npm i -S http-const
```
## Usage
``` js
var httpConst = require('http-const');
console.log(httpConst.methods.get); // will output GET
console.log(httpConst.protocols.http); // will output HTTP
console.log(httpConst.protocolVersions.v10); // will output HTTP/1.0
console.log(httpConst.headers.contentType); // will output Content-Type
console.log(httpConst.contentTypes.formData); // will output multipart/form-data
```
## License
This code available under the MIT License.
See License.md for details.
## Authors
**Alexander Mac** ([amatsibarov@gmail.com](mailto:amatsibarov@gmail.com))
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc