Skip to content

Instantly share code, notes, and snippets.

@fgm
Last active December 21, 2018 10:27
Show Gist options
  • Save fgm/6d8216dca48375a48b489df75db6a26a to your computer and use it in GitHub Desktop.
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
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