Last active
December 21, 2018 10:27
-
-
Save fgm/6d8216dca48375a48b489df75db6a26a to your computer and use it in GitHub Desktop.
List the services available from all Atmosphere packages bundles in the current Meteor app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log(Object.keys(Package).sort().map(x => ({ [x]: Object.keys(Package[x]).sort(), }))) | |
/* | |
Main use case: finding the name of the actual services available when you decide to adopt a | |
dependency injection pattern, especially with TypeScript, and import every needed package | |
instead of relying on the global availability provided by the Meteor runtime for /some/ of them. | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment