GT2/GT2-iOS/node_modules/prepend-http
Ren Ren Juan 30eef7d036 correct tree err 2018-02-12 17:26:06 +00:00
..
index.js correct tree err 2018-02-12 17:26:06 +00:00
license correct tree err 2018-02-12 17:26:06 +00:00
package.json correct tree err 2018-02-12 17:26:06 +00:00
readme.md correct tree err 2018-02-12 17:26:06 +00:00

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