import fs = require ( "fs" ) ; export class FileHelper { public doesFileExists ( path ) { return fs . existsSync ( path ) ; } public readJSONFile ( path ) { return JSON . parse ( fs . readFileSync ( path , "utf8" ) ) ; } public readFile ( path , encoding ) { return fs . readFileSync ( path , encoding ) ; } }