UNPKG

@kadena/kadena-cli

Version:

Kadena CLI tool to interact with the Kadena blockchain (manage keys, transactions, etc.)

12 lines 382 B
import { join } from 'path'; import { fileSystemService } from '../../fs/fs.service.js'; export async function shallowFindFile(path, file) { while (!(await fileSystemService.fileExists(join(path, file)))) { path = join(path, '..'); if (path === '/') { return; } } return join(path, file); } //# sourceMappingURL=shallowFindFile.js.map