UNPKG

@ycmd/creds

Version:

LSK.js CLI Creds is the easiest way to manage GitHub / Gitlab secrets and credentials

11 lines (8 loc) 543 B
'use strict'; var fishbird = require('fishbird'); var promises = require('fs/promises'); var path = require('path'); var m=Object.defineProperty;var i=(e,r)=>m(e,"name",{value:r,configurable:!0});async function s(e){let r=await promises.readdir(e,{withFileTypes:!0});return (await fishbird.map(r,async a=>a.isDirectory()?[{name:a.name,dir:path.resolve(e),filename:path.resolve(e,a.name)},...await s(path.resolve(e,a.name))]:[])).flat()}i(s,"getDirs"); exports.getDirs = s; //# sourceMappingURL=out.js.map //# sourceMappingURL=getDirs.js.map