mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-25 10:01:30 -04:00
prepend-http 
Prepend
http://to humanized URLs liketodomvc.comandlocalhost
Install
$ npm install --save prepend-http
Usage
const prependHttp = require('prepend-http');
prependHttp('todomvc.com');
//=> 'http://todomvc.com'
prependHttp('localhost');
//=> 'http://localhost'
prependHttp('http://todomvc.com');
//=> 'http://todomvc.com'
License
MIT © Sindre Sorhus