first commit

This commit is contained in:
Sergiu Toma
2022-06-03 11:13:06 +03:00
commit 9fe6071a62
1285 changed files with 220311 additions and 0 deletions

2
node_modules/escalade/sync/index.d.ts generated vendored Normal file
View File

@ -0,0 +1,2 @@
export type Callback = (directory: string, files: string[]) => string | false | void;
export default function (directory: string, callback: Callback): string | void;

18
node_modules/escalade/sync/index.js generated vendored Normal file
View File

@ -0,0 +1,18 @@
const { dirname, resolve } = require('path');
const { readdirSync, statSync } = require('fs');
module.exports = function (start, callback) {
let dir = resolve('.', start);
let tmp, stats = statSync(dir);
if (!stats.isDirectory()) {
dir = dirname(dir);
}
while (true) {
tmp = callback(dir, readdirSync(dir));
if (tmp) return resolve(dir, tmp);
dir = dirname(tmp = dir);
if (tmp === dir) break;
}
}

18
node_modules/escalade/sync/index.mjs generated vendored Normal file
View File

@ -0,0 +1,18 @@
import { dirname, resolve } from 'path';
import { readdirSync, statSync } from 'fs';
export default function (start, callback) {
let dir = resolve('.', start);
let tmp, stats = statSync(dir);
if (!stats.isDirectory()) {
dir = dirname(dir);
}
while (true) {
tmp = callback(dir, readdirSync(dir));
if (tmp) return resolve(dir, tmp);
dir = dirname(tmp = dir);
if (tmp === dir) break;
}
}