You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

readme.md 577B

12345678910111213141516171819202122232425262728293031
  1. # prepend-http [![Build Status](https://travis-ci.org/sindresorhus/prepend-http.svg?branch=master)](https://travis-ci.org/sindresorhus/prepend-http)
  2. > Prepend `http://` to humanized URLs like `todomvc.com` and `localhost`
  3. ## Install
  4. ```
  5. $ npm install --save prepend-http
  6. ```
  7. ## Usage
  8. ```js
  9. const prependHttp = require('prepend-http');
  10. prependHttp('todomvc.com');
  11. //=> 'http://todomvc.com'
  12. prependHttp('localhost');
  13. //=> 'http://localhost'
  14. prependHttp('http://todomvc.com');
  15. //=> 'http://todomvc.com'
  16. ```
  17. ## License
  18. MIT © [Sindre Sorhus](https://sindresorhus.com)