lup-root
Node module that determines absolute path to project root and main file of project
Example
const {ROOT, MAIN} = require('lup-root');
console.log("Root directory: " + ROOT);
console.log("Main file: " + MAIN);
Node module determines path to project root