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.

transform-utils.js 478B

123456789101112131415161718192021
  1. /*
  2. Copyright 2015, Yahoo Inc.
  3. Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
  4. */
  5. 'use strict';
  6. function getUniqueKey(pathname) {
  7. return pathname.replace(/[\\/]/g, '_');
  8. }
  9. function getOutput(cache) {
  10. return Object.values(cache).reduce(
  11. (output, { file, mappedCoverage }) => ({
  12. ...output,
  13. [file]: mappedCoverage
  14. }),
  15. {}
  16. );
  17. }
  18. module.exports = { getUniqueKey, getOutput };