Prepend `https://` to humanized URLs like `sindresorhus.com` and `localhost`
MIT License
Prepend
https://
to humanized URLs likesindresorhus.com
andlocalhost
$ npm install prepend-http
import prependHttp from 'prepend-http';
prependHttp('sindresorhus.com');
//=> 'https://sindresorhus.com'
prependHttp('localhost', {https: false});
//=> 'http://localhost'
prependHttp('https://sindresorhus.com');
//=> 'https://sindresorhus.com'
Type: string
The URL to prepend https://
to.
Type: object
Type: boolean
Default: true
Prepend https://
instead of http://
.