Son CV dans un terminal web en Javascript!
https://terminal-cv.gregandev.fr
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
598 B
20 lines
598 B
2 years ago
|
"use strict";
|
||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
const path = require("path");
|
||
|
const UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([*?|(){}[\]]|^!|[@+!](?=\())/g;
|
||
|
/**
|
||
|
* Designed to work only with simple paths: `dir\\file`.
|
||
|
*/
|
||
|
function unixify(filepath) {
|
||
|
return filepath.replace(/\\/g, '/');
|
||
|
}
|
||
|
exports.unixify = unixify;
|
||
|
function makeAbsolute(cwd, filepath) {
|
||
|
return path.resolve(cwd, filepath);
|
||
|
}
|
||
|
exports.makeAbsolute = makeAbsolute;
|
||
|
function escape(pattern) {
|
||
|
return pattern.replace(UNESCAPED_GLOB_SYMBOLS_RE, '\\$2');
|
||
|
}
|
||
|
exports.escape = escape;
|