Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var path = require('path');
- module.exports = (function () {
- return path.dirname(require.main.filename || process.mainModule.filename);
- })();
- // Example of usage:
- var root = require('root'); // In root will be absolute path to your application
Add Comment
Please, Sign In to add comment