feat: refactoring project

This commit is contained in:
Carlos
2024-11-23 14:56:07 -05:00
parent f0c2a50c18
commit 1c6db5818d
2351 changed files with 39323 additions and 60326 deletions

20
node_modules/path-exists/index.js generated vendored
View File

@ -1,23 +1,19 @@
'use strict';
const fs = require('fs');
const {promisify} = require('util');
import fs, {promises as fsPromises} from 'node:fs';
const pAccess = promisify(fs.access);
module.exports = async path => {
export async function pathExists(path) {
try {
await pAccess(path);
await fsPromises.access(path);
return true;
} catch (_) {
} catch {
return false;
}
};
}
module.exports.sync = path => {
export function pathExistsSync(path) {
try {
fs.accessSync(path);
return true;
} catch (_) {
} catch {
return false;
}
};
}