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 1.1KB

12345678910111213141516171819202122232425262728293031323334
  1. # Fetch Ponyfill
  2. > WHATWG `fetch` [ponyfill](https://ponyfill.com)
  3. This module wraps the [github/fetch](https://github.com/github/fetch) polyfill in a CommonJS module
  4. for browserification, and avoids appending anything to the window, instead returning a setup
  5. function when `fetch-ponyfill` is required. Inspired by
  6. [object-assign](https://github.com/sindresorhus/object-assign).
  7. When used in Node, delegates to `node-fetch` instead.
  8. ## Usage
  9. ### Browserify
  10. ```javascript
  11. const {fetch, Request, Response, Headers} = require('fetch-ponyfill')(options);
  12. ```
  13. ### Webpack
  14. ```javascript
  15. import fetchPonyfill from 'fetch-ponyfill';
  16. const {fetch, Request, Response, Headers} = fetchPonyfill(options);
  17. ```
  18. ### Options
  19. Where `options` is an object with the following optional properties:
  20. | option | description |
  21. | ------ | ----------- |
  22. | `Promise` | An A+ Promise implementation. Defaults to `window.Promise` in the browser, and `global.Promise` in Node. |
  23. | `XMLHttpRequest` | The XMLHttpRequest constructor. This is useful to feed in when working with Firefox OS. Defaults to `window.XMLHttpRequest`. Has no effect in Node. |