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