2021-06-27 21:00:24 +08:00

14 lines
273 B
TypeScript

import path, { dirname } from 'path'
class pathUtil {
static getPath(pathStr) {
return path.resolve(pathUtil.getRootPath(), pathStr);
}
static getRootPath() {
return path.resolve(__dirname, '..');
}
}
export default pathUtil