https-only
ExpressJS middleware to force applications to accept HTTPS requests only.
Installation
$ npm install https-only
Usage
var httpsOnly = var express = var app = // Enable https-onlyapp // Any routes beneath the https-only middleware will need to be// accessed via HTTPSapp // Error handlerapp app
Development Mode
Development mode temporarily allows HTTP requests when NODE_ENV is set to development
AND true
is passed into httpsOnly.
var allowDebug = trueapp
Running Tests
$ mocha
License
MIT