import fs from "fs" ; import { loadYaml } from "@chainsafe/lodestar-utils" ; export function isDirectory ( path ) { return fs . lstatSync ( path ) . isDirectory ( ) ; } export function loadYamlFile ( path ) { return loadYaml ( fs . readFileSync ( path , "utf8" ) ) ; }