app-root-dir

Simple module to infer the root directory of the currently running node application

is-node

Detect if current process is a node application or not.