Meteor.rootPath
Get current path on your server, where is Meteor application is running
This package supports Windows. Thanks to @Konard.
Install:
meteor add ostrio:meteor-root
Usage:
1var pathToFile = Meteor.rootPath + '/folder/where/is/your/file.json';
Returns absolute path to programs/server
folder of your compiled application, without trailing slash
1var pathToFile = Meteor.absolutePath + '/.meteor/local/build/programs/server/folder/where/is/your/file.json';
Returns absolute path to .meteor
folder of your compiled application, without trailing slash