{"library":"express-http-to-https","type":"library","category":null,"description":"express-http-to-https is a lightweight Node.js package designed to provide an Express.js middleware for automatically redirecting HTTP traffic to HTTPS. This utility focuses on a single concern: ensuring that clients attempting to connect over unencrypted HTTP are seamlessly redirected to the secure HTTPS version of the application. The current stable version is 1.1.4, but the package has not seen active development in approximately eight years, with its last publish occurring in April 2018, indicating it is largely abandoned. Key differentiators include its simplicity and configurable options to ignore specific hostnames (e.g., for local development) or routes, as well as the ability to specify the HTTP redirect status code. It relies on checking the `x-forwarded-proto` header, which is standard when running applications behind a reverse proxy like Nginx or a cloud load balancer. While functional for its core purpose, its lack of recent updates means it might not incorporate modern Express or Node.js features, nor receive security patches.","language":"javascript","status":"abandoned","version":"1.1.4","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install express-http-to-https","imports":["import { redirectToHTTPS } from 'express-http-to-https';","const redirectToHTTPS = require('express-http-to-https').redirectToHTTPS;","app.use(redirectToHTTPS([/localhost:(\\d{4})/], [//insecure/], 301));"]},{"cmd":"yarn add express-http-to-https","imports":[]},{"cmd":"pnpm add express-http-to-https","imports":[]}],"homepage":null,"github":"https://github.com/SegFaultx64/express-http-to-https","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/express-http-to-https","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/express-http-to-https/compatibility"}}