Vinícius Ernani de Carvalho 6c4544a079 Create the backend | 5 anni fa | |
---|---|---|
.. | ||
index.js | 5 anni fa | |
license | 5 anni fa | |
package.json | 5 anni fa | |
readme.md | 5 anni fa |
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