• Parameters

    • path: string

    Returns undefined | string

Properties

cache: MapLike<string, undefined | string>

return value cache

getMtime: ((path: string) => undefined | number)

Get the numeric mtime value for a given path, if possible. Will statSync() the file if the mtime is not in the cache, or if the time since the lastStatTime is greater than the statFreqMs provided to cachedMtime.

mtimeCache: MapLike<string, [mtime: number, lastStatTime: number]>

cache of mtime values and the most recent peformance.now() value when the statSync was performed to read it.