to-https
Convert (almost) any url to https.
Install
$ npm install to-https
Usage
const toHttps = ; ;//=> 'https://www.chrisvogt.me' ;//=> 'https://my.cdn.com/image.png' ;//=> 'https://127.0.0.1'
API
toHttps(input)
input
Type: string
The url or address to convert to HTTPS.
License
MIT © Chris Vogt