MCPcopy Create free account
hub / github.com/fabien0102/openapi-codegen / readFile

Method readFile

cli/src/commands/GenerateCommand.ts:251–256  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

249 };
250
251 const readFile = (file: string) => {
252 return fsExtra.readFile(
253 path.join(process.cwd(), config.outputDir, file),
254 "utf-8"
255 );
256 };
257
258 const existsFile = (file: string) => {
259 return fsExtra.existsSync(

Callers 2

getConfigSourceFileMethod · 0.80
generateFetchersFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected