2 Object.defineProperty(exports, "__esModule", { value: true });
\r
3 var path = require("path");
\r
5 * Returns «true» if the last partial of the path starting with a period.
\r
7 function isDotDirectory(filepath) {
\r
8 return path.basename(filepath).startsWith('.');
\r
10 exports.isDotDirectory = isDotDirectory;
\r
12 * Convert a windows-like path to a unix-style path.
\r
14 function normalize(filepath) {
\r
15 return filepath.replace(/\\/g, '/');
\r
17 exports.normalize = normalize;
\r
19 * Returns normalized absolute path of provided filepath.
\r
21 function makeAbsolute(cwd, filepath) {
\r
22 return normalize(path.resolve(cwd, filepath));
\r
24 exports.makeAbsolute = makeAbsolute;
\r