Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
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 862B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 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. prependHttp('todomvc.com', {https: true});
  17. //=> 'https://todomvc.com'
  18. ```
  19. ## API
  20. ### prependHttp(url, [options])
  21. #### url
  22. Type: `string`
  23. URL to prepend `http://` on.
  24. #### options
  25. Type: `Object`
  26. ##### https
  27. Type: `boolean`<br>
  28. Default: `false`
  29. Prepend `https://` instead of `http://`.
  30. ## License
  31. MIT © [Sindre Sorhus](https://sindresorhus.com)