Reputation: 2135
This answer explains how to read the package.json "version" from a npm start
ed application. Is there an env
variable in Meteor (1.3+) with this info?
Upvotes: 1
Views: 804
Reputation: 2184
Well, there is not npm_package_version environment value in process object.
But you get the value of version using following code :
var pjson = require('/package.json');
console.log(pjson.version); // This will print the version
Upvotes: 4