.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / fast-glob / package / out / utils / path.js
1 "use strict";\r
2 Object.defineProperty(exports, "__esModule", { value: true });\r
3 var path = require("path");\r
4 /**\r
5  * Returns «true» if the last partial of the path starting with a period.\r
6  */\r
7 function isDotDirectory(filepath) {\r
8     return path.basename(filepath).startsWith('.');\r
9 }\r
10 exports.isDotDirectory = isDotDirectory;\r
11 /**\r
12  * Convert a windows-like path to a unix-style path.\r
13  */\r
14 function normalize(filepath) {\r
15     return filepath.replace(/\\/g, '/');\r
16 }\r
17 exports.normalize = normalize;\r
18 /**\r
19  * Returns normalized absolute path of provided filepath.\r
20  */\r
21 function makeAbsolute(cwd, filepath) {\r
22     return normalize(path.resolve(cwd, filepath));\r
23 }\r
24 exports.makeAbsolute = makeAbsolute;\r