@karmaniverous/get-dotenv
    Preparing search index...

    Function readPkgVersion

    • Read the version from the nearest package.json relative to the provided import URL.

      Parameters

      • OptionalimportMetaUrl: string

        The import.meta.url of the calling module.

      Returns Promise<string | undefined>

      The version string or undefined if not found.