Detect if code running as a (dependent) Package referenced from another package

I wondered if there is a way to detect if code is running from inside a package? more specifically running as a dependency within another package (and of course not the main Meteor app)?