tree: 444d307e753c76a5f88457559ae9e4dbb2f0f07c [path history] [tgz]
  1. index.js
  2. license
  3. package.json
  4. readme.md
node_modules/prepend-http/readme.md

prepend-http Build Status

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

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