(pathname: string)
| 467 | } |
| 468 | |
| 469 | export function isJavaScript(pathname: string): boolean { |
| 470 | const ext = path.extname(pathname).toLowerCase(); |
| 471 | return ext === '.js' || ext === '.mjs' || ext === '.cjs'; |
| 472 | } |
| 473 | |
| 474 | export function getExtension(str: string) { |
| 475 | return path.extname(str).toLowerCase(); |
no outgoing calls
no test coverage detected