Functionutilsv0.10.0
formatFilePath(
filePath: string,
options?: FormatFileOptions
): string// cwd is /repo
formatFilePath('/repo/src/Bot.ts'); // './src/Bot.ts'
formatFilePath('/repo/src/Bot.ts', { onlyDir: true }); // './src'
formatFilePath('/repo/src/Bot.ts', { prefix: '' }); // 'src/Bot.ts'filePath
filePath: stringoptions?
options?: FormatFileOptions