Why use it?
redirect url to SSL.
Live Demo
Installation
npm install lesca-http2https --saveUsage
As a Node module:
import { toHttps } from 'lesca-http2https';
toHttps(); // http://www.exsamle.com => https://www.exsamle.comDevelopment
Methods
| method | description | return |
|---|---|---|
| .toHttps() | redirect url to SSL | void |
| .toHttp() | redirect url to not SSL | void |
Features
- maintain if necessary