Read the version from the nearest package.json relative to the provided import URL.
package.json
Optional
The import.meta.url of the calling module.
import.meta.url
The version string or undefined if not found.
Read the version from the nearest
package.jsonrelative to the provided import URL.