import { existsSync , readFileSync , writeFileSync } from "fs" ; export function readFile ( path ) { try { return readFileSync ( path , { encoding : "utf-8" } ) ; } catch ( e ) { return null ; } } export function writeFile ( path , content ) { try { writeFileSync ( path , content ) ; return true ; } catch ( e ) { return false ; } } export function fileExists ( path ) { return existsSync ( path ) ; } export function hasFolder ( folders ) { return folders && folders . length > 0 ? true : false ; }