XuelesszzZ 94af2b8e7b 6-30-5 | 1 жил өмнө | |
---|---|---|
.. | ||
index.js | 1 жил өмнө | |
license | 1 жил өмнө | |
package.json | 1 жил өмнө | |
readme.md | 1 жил өмнө |
Prepend
http://
to humanized URLs liketodomvc.com
andlocalhost
$ npm install --save prepend-http
const prependHttp = require('prepend-http');
prependHttp('todomvc.com');
//=> 'http://todomvc.com'
prependHttp('localhost');
//=> 'http://localhost'
prependHttp('http://todomvc.com');
//=> 'http://todomvc.com'
MIT © Sindre Sorhus