Vinícius Ernani de Carvalho 6c4544a079 Create the backend 5 年之前
..
index.js 6c4544a079 Create the backend 5 年之前
license 6c4544a079 Create the backend 5 年之前
package.json 6c4544a079 Create the backend 5 年之前
readme.md 6c4544a079 Create the backend 5 年之前

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