gatelineAPI reference
  • Resolve the git checkout that owns the module at fromFileUrl (pass the caller's own import.meta.url). Returns the toplevel directory, or null when the module isn't inside a git checkout at all (e.g. installed from a published package with no .git above it) — in which case there is nothing for a drift monitor to watch.

    Parameters

    • fromFileUrl: string

    Returns null | string