Resolve the root project directory.
var rootDir = require( '@stdlib/_tools/utils/root-dir' );Returns the root project directory.
var dir = rootDir();
// returns '...'- If unable to resolve the root project directory, the function throws an error.
var rootDir = require( '@stdlib/_tools/utils/root-dir' );
var dir = rootDir();
// returns '...'
console.log( dir );