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.

pathutils.js 537B

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. const path = require('path');
  7. module.exports = {
  8. isAbsolute: path.isAbsolute,
  9. asAbsolute(file, baseDir) {
  10. return path.isAbsolute(file)
  11. ? file
  12. : path.resolve(baseDir || process.cwd(), file);
  13. },
  14. relativeTo(file, origFile) {
  15. return path.isAbsolute(file)
  16. ? file
  17. : path.resolve(path.dirname(origFile), file);
  18. }
  19. };