Get project name at runtime in 3.x

I’m looking for a property or getter that will return the project name at runtime, but I have not been able to find one yet. Does one exist and I’m just missing it? Or is there another way I can get this value?

For example, in the web-mobile build template’s index.ejs the title tag is populated via <%= projectName %> macro. Is there a way to get this same value in the game’s source code during runtime?

I’d rather not try to parse this title tag for it because it’s not reliable enough due to different build templates existing and this being easily changeable.

What platform are you trying to get the name of the project under?

Web-mobile

I built the web-mobile project with CocosCreator 3.6.0, with the project name in the title tag.
Currently, the CocosCreator engine does not record the user’s project name, so there is no way to query it through the engine API. You can only access the title tag attribute and resolve the project name yourself.

I see, I was hoping to avoid that but I suppose it will have to do for now. Thank you for the response.