Function createGetModuleFromFilename

  • Creates a function that gets the module name from a filename

    Parameters

    • OptionalbasePath: string
    • OptionalisWindows: boolean

    Returns (filename: string | undefined) => string | undefined