1.1.0 • Published 5 years ago

to-https v1.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

to-https Build Status codecov

Convert (almost) any url to https.

Install

$ npm install to-https

Usage

const toHttps = require('to-https');

toHttps('http://www.chrisvogt.me');
//=> 'https://www.chrisvogt.me'

toHttps('//my.cdn.com/image.png');
//=> 'https://my.cdn.com/image.png'

toHttps('127.0.0.1');
//=> 'https://127.0.0.1'

API

toHttps(input)

input

Type: string

The url or address to convert to HTTPS.

License

MIT © Chris Vogt

1.1.0

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago