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.

writeOutputFile.js 336B

12345678910111213
  1. 'use strict';
  2. const path = require('path');
  3. const stripAnsi = require('strip-ansi');
  4. const writeFileAtomic = require('write-file-atomic');
  5. /**
  6. * @param {string} content
  7. * @param {string} filePath
  8. * @returns {Promise<void>}
  9. */
  10. module.exports = (content, filePath) =>
  11. writeFileAtomic(path.normalize(filePath), stripAnsi(content));