New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

https-rewrite

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

https-rewrite

Rewrites http requests to https

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

https-rewrite

Rewrite URLs to https.

NPM JavaScript Style Guide

Install

npm install --save https-rewrite

Usage

Currently only express@^4.0.0 is supported as the engine to perform rewrites in.

express

const redirectToHttps = require('https-rewrite/express');

// ... set up express

// Should be one of the topmost (if not the) middlewares.
app.use(redirectToHttps({
  // Change the status code used to redirect. Defaults to 307.
  status: 301
}))

License

MIT © jutaz

Keywords

express

FAQs

Package last updated on 23 Aug 2018

Did you know?

Socket

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