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.

index.js 607B

12345678910111213141516171819202122232425262728
  1. 'use strict';
  2. const http2 = require('http2');
  3. const agent = require('./agent');
  4. const ClientRequest = require('./client-request');
  5. const IncomingMessage = require('./incoming-message');
  6. const auto = require('./auto');
  7. const request = (url, options, callback) => {
  8. return new ClientRequest(url, options, callback);
  9. };
  10. const get = (url, options, callback) => {
  11. // eslint-disable-next-line unicorn/prevent-abbreviations
  12. const req = new ClientRequest(url, options, callback);
  13. req.end();
  14. return req;
  15. };
  16. module.exports = {
  17. ...http2,
  18. ClientRequest,
  19. IncomingMessage,
  20. ...agent,
  21. request,
  22. get,
  23. auto
  24. };