MCPcopy Create free account
hub / github.com/Snapchat/Valdi / hasExtension

Function hasExtension

npm_modules/cli/src/utils/fileUtils.ts:141–143  ·  view source on GitHub ↗
(filePath: string, extension: string)

Source from the content-addressed store, hash-verified

139}
140
141export function hasExtension(filePath: string, extension: string): boolean {
142 return fs.existsSync(filePath) && path.extname(filePath) === extension;
143}
144
145export function processReplacements(input: string, replacements: Replacements): string {
146 let outputContent = input;

Callers 1

checkAndFormatFilesFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected