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.

createNodeWriter.js 629B

12345678910111213141516171819202122232425
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = void 0;
  6. const createBlockingWriter = stream => {
  7. return {
  8. write: message => {
  9. stream.write(message + '\n');
  10. }
  11. };
  12. };
  13. const createNodeWriter = () => {
  14. // eslint-disable-next-line no-process-env
  15. const targetStream = (process.env.ROARR_STREAM || 'STDOUT').toUpperCase();
  16. const stream = targetStream.toUpperCase() === 'STDOUT' ? process.stdout : process.stderr;
  17. return createBlockingWriter(stream);
  18. };
  19. var _default = createNodeWriter;
  20. exports.default = _default;
  21. //# sourceMappingURL=createNodeWriter.js.map