Get the path of the current directory in Finder (macOS) and Explorer (Windows)
$ npm install current-path
import currentPath from 'current-path';
console.log(await currentPath());
//=> '/Users/sindresorhus/dev/current-path'
Returns a Promise<string> with current directory in Finder or Explorer.