{"version":3,"sources":["../../src/util/fileUtils.ts"],"sourcesContent":["import {\n  readFileSync,\n  writeFile as fsWriteFile,\n  PathOrFileDescriptor,\n} from 'fs';\nimport { ENCODING } from '../common/constants';\n\nexport function readFile(\n  fileInputName: PathOrFileDescriptor,\n  encoding: ENCODING = ENCODING.utf8\n): string {\n  return readFileSync(fileInputName, encoding).toString();\n}\n\nexport function writeFile(jsonString: string, fileOutputName: string): void {\n  fsWriteFile(fileOutputName, jsonString, function (err) {\n    if (err) {\n      throw err;\n    } else {\n      console.log('File saved: ' + fileOutputName);\n    }\n  });\n}\n\nexport default {\n  readFile,\n  writeFile,\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBAIO;AAGA,SAAS,SACd,eACA,8BACQ;AACR,aAAO,wBAAa,eAAe,QAAQ,EAAE,SAAS;AACxD;AAEO,SAAS,UAAU,YAAoB,gBAA8B;AAC1E,gBAAAA,WAAY,gBAAgB,YAAY,SAAU,KAAK;AACrD,QAAI,KAAK;AACP,YAAM;AAAA,IACR,OAAO;AACL,cAAQ,IAAI,iBAAiB,cAAc;AAAA,IAC7C;AAAA,EACF,CAAC;AACH;AAEA,IAAO,oBAAQ;AAAA,EACb;AAAA,EACA;AACF;","names":["fsWriteFile"]}