# httpsonly

> “httpsonly”

Latest version **2.0.0** (published 2022-01-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install httpsonly
pnpm add httpsonly
yarn add httpsonly
bun add httpsonly
```

## 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 | 2.0.0 |
| Published | 2022-01-31 |
| First published | 2016-06-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 2.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | ebdrup, hilleer |

## Links

- npm: https://www.npmjs.com/package/httpsonly
- Repository: https://github.com/debitoor/httpsonly
- Issues: https://github.com/debitoor/httpsonly/issues
- npm.io page: https://npm.io/package/httpsonly

## Dependencies (1)

- [helmet](https://npm.io/package/helmet.md) 5.0.2

## Recent versions

- 2.0.0 (latest) — 2022-01-31
- 1.3.0 — 2016-06-06
- 1.2.0 — 2016-06-06
- 1.1.0 — 2016-06-06
- 1.0.0 — 2016-06-06

## README

# httpsonly

[![Node.js CI](https://github.com/debitoor/httpsonly/actions/workflows/node.js.yml/badge.svg?branch=master)](https://github.com/debitoor/httpsonly/actions/workflows/node.js.yml)

Express middleware that redirects http requests to https.

Also sets Strict Transport Security header, telling browsers to visit by HTTPS for the next year.
Also hides the powered by express header.

```shell
npm install httpsonly
```

## Usage

```javascript
var httpsonly = require('httpsonly');
app.use(httpsonly()); //app is the express app
```

## License

[MIT](http://opensource.org/licenses/MIT)

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