import * as path from "path" ; export const IPathUtils = Symbol ( 'IPathUtils' ) ; export interface IPathUtils { getPathVariableName ( ) : 'Path' | 'PATH' ; basename ( pathValue , ext ? ) : string ; } export class PathUtils implements IPathUtils { constructor ( private _isWindows ) { } public getPathVariableName ( ) { return this . _isWindows ? 'Path' : 'PATH' ; } public basename ( pathValue , ext ? ) { return path . basename ( pathValue , ext ) ; } }