Reading Package Information from within package code?


#1

Suppose I have:

Package.describe({
name: ‘author:package_name’,
version: ‘0.1.2’,
summary: ‘Download i18n def …’,
git: ‘’,
documentation: ‘README.md
});

How do I get the package information, say name, version no. already defined in package.js from WITHIN the package’s own code?
The purpose is to show some package info on console log when the package is running, without hard coding such info twice in the code.

Thanks.


#2

Did you ever figure out how to do this? I have built a meteor app and would like to display it’s version on UI.


#3

Sorry, I didn’t investigate that further :sweat_smile: