root
Set and get the project root
This overwrites the actual.require.main.filename
- might not work when using something like PM2
set
You can set the project root by calling root
with the dir parameter
get
You can get the project root by calling root
without any parameters
Last updated