3.0.0 • Published 3 years ago
current-path v3.0.0
current-path
Get the path of the current directory in Finder (macOS) and Explorer (Windows)
Usage
$ npm install current-path
import currentPath from 'current-path';
console.log(await currentPath());
//=> '/Users/sindresorhus/dev/current-path'
API
currentPath()
Returns a Promise<string>
with current directory in Finder or Explorer.
Related
- current-path-cli - CLI for this module