lesca-http2https
Version:
redirect url to SSL
43 lines (29 loc) • 1.64 kB
Markdown
[](https://zh-hant.reactjs.org/)
[](https://lesscss.org/)
[](https://www.typescriptlang.org/)
[](https://www.w3schools.com/html/)
[](https://www.w3schools.com/css/)
[](https://www.npmjs.com/)
[](https://nodejs.org/en/)
[](https://www.npmjs.com/~jameshsu1125)
# Why use it?
redirect url to SSL.
#### [Live Demo](https://jameshsu1125.github.io/lesca-http2https/)
# Installation
```sh
npm install lesca-http2https --save
```
## Usage
As a Node module:
```javascript
import { toHttps } from 'lesca-http2https';
toHttps(); // http://www.exsamle.com => https://www.exsamle.com
```
## Development
### Methods
| method | description | return |
| :------------- | :---------------------: | -----: |
| .**toHttps**() | redirect url to SSL | void |
| .**toHttp**() | redirect url to not SSL | void |
### Features
- maintain if necessary