# express-force-https

> Express middleware to redirect all http requests to https

Latest version **1.0.0** (published 2016-06-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install express-force-https
pnpm add express-force-https
yarn add express-force-https
bun add express-force-https
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-06-23 |
| First published | 2016-06-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Nick Poisson |
| Maintainers | njam3 |
| Keywords | express,, middleware,, https,, force |

## Links

- npm: https://www.npmjs.com/package/express-force-https
- Repository: https://github.com/njam3/express-force-https
- Issues: https://github.com/njam3/express-force-https/issues
- npm.io page: https://npm.io/package/express-force-https

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2016-06-23

## README

# express-force-https

[![stable](http://badges.github.io/stability-badges/dist/stable.svg)](http://github.com/badges/stability-badges)

Express middleware to redirect all http requests to https.

## Usage

[![NPM](https://nodei.co/npm/express-force-https.png)](https://www.npmjs.com/package/express-force-https)

A simple module to check if the current request is using https. If not, it will redirect to the same route, but using https. It also checks for cases of localhost and disables the redirect if so.

```
npm i express-force-https
```

```
var express = require('express');
var secure = require('express-force-https');

var app = express();
app.use(secure);
```
## License

MIT, see [LICENSE.md](http://github.com/njam3/express-force-https/blob/master/LICENSE.md) for details.

---
_Source: https://npm.io/package/express-force-https · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
