Obtaining the name of a package imported using Pkg.develop?

Hello all,

I have a situation where I’m importing a package programatically by using Pkg.develop(url=url_string), where url_string is a user input. I then need to find out what the name of the package is. The best I can think of here is finding the most recently added directory in the JULIA_PKG_DEVDIR folder and then having a look inside its Project.toml, but it certainly feels like there might be a better way. Could anyon please point me in the right direction?

Chris