Skip to content

Prepend http:// to humanized URLs like todomvc.com and localhost

License

Notifications You must be signed in to change notification settings

blakeembrey/prepend-http

 
 

Repository files navigation

prepend-http Build Status

Prepend http:// to humanized URLs like todomvc.com and localhost

Install

$ npm install --save prepend-http

Usage

var 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

About

Prepend http:// to humanized URLs like todomvc.com and localhost

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages

  • JavaScript 100.0%