prepend-http
Advanced tools
Weekly downloads
Readme
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://
.
Prepend `https://` to humanized URLs like sindresorhus.com and localhost
The npm package prepend-http receives a total of 15,282,304 weekly downloads. As such, prepend-http popularity was classified as popular.
We found that prepend-http demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.It has 1 open source maintainer collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.