UNPKG

@kadena/kadena-cli

Version:

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

12 lines 383 B
import { join } from 'path'; import { services } from '../../../services/index.js'; export const shallowFindFile = async (path, file) => { while (!(await services.filesystem.fileExists(join(path, file)))) { path = join(path, '..'); if (path === '/') { return; } } return join(path, file); }; //# sourceMappingURL=shallowFindFile.js.map