@ycmd/creds
Version:
LSK.js CLI Creds is the easiest way to manage GitHub / Gitlab secrets and credentials
28 lines (26 loc) • 691 B
JavaScript
import { __name } from './chunk-POLJ2ZZ2.js';
import { map } from 'fishbird';
import { readdir } from 'fs/promises';
import { resolve } from 'path';
async function getDirs(dir) {
const dirents = await readdir(dir, {
withFileTypes: true
});
const files = await map(dirents, async (dirent) => {
if (!dirent.isDirectory())
return [];
return [
{
name: dirent.name,
dir: resolve(dir),
filename: resolve(dir, dirent.name)
},
...await getDirs(resolve(dir, dirent.name))
];
});
return files.flat();
}
__name(getDirs, "getDirs");
export { getDirs };
//# sourceMappingURL=out.js.map
//# sourceMappingURL=chunk-553EXBWU.js.map