Socket
Socket
Sign inDemoInstall

http-constants

Package Overview
Dependencies
0
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    http-constants

Constant values for http (headers, codes, etc.)


Version published
Weekly downloads
1K
increased by14.71%
Maintainers
1
Install size
5.11 MB
Created
Weekly downloads
 

Readme

Source

HTTP CONSTANTS

Usage

There are four ways of using this package:

  1. If using es6 modules, just use import * from 'http-constants/src/main/consts.js' and you should be fine. As with any es6 module usage, you can get as fine-grained with that as you'd like.

  2. If not using es6, the regular node/es5 syntax should work, though you'll need to reference the transpiled file: var http_const = require('http-constants/target/dist/consts.js');, though this is referenced in the package, so var http_const = require('http-constants') should do.

  3. Exactly like option #2, but using the minified version.

  4. Something else involving file copying and/or a build pipeline.

Contributing

Just submit a pull request and I'll get right on integrating it.

Keywords

FAQs

Last updated on 25 May 2021

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