I am creating a node command line interface. It is installed globally and uses a bin file to execute.
I plan to have a command window open at the root directory of t
path.resolve('.') is also a reliable and clean option, because we almost always require('path'). It will give you absolute path of the directory from where it is called.
path.resolve('.')
require('path')