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 401B

1234567891011121314151617
  1. 'use strict';
  2. const PassThrough = require('stream').PassThrough;
  3. const mimicResponse = require('mimic-response');
  4. const cloneResponse = response => {
  5. if (!(response && response.pipe)) {
  6. throw new TypeError('Parameter `response` must be a response stream.');
  7. }
  8. const clone = new PassThrough();
  9. mimicResponse(response, clone);
  10. return response.pipe(clone);
  11. };
  12. module.exports = cloneResponse;