How can i read the public directory in a meteor application inside my /server path.
I tried using the native \'fs\' package but i keep getting a file/di
\'fs\'
This works for me in Meteor 1.0:
var fs = Npm.require('fs') var xsd = fs.readFileSync(process.cwd().split('.meteor')[0] + 'server/company.xsd', 'utf8')