tree: 0ed0bca6812d9872fdd44d4b3aa16bb303f1f8a5 [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