current-path
v3.0.0
Published
Get the path of the current directory in Finder (macOS) and Explorer (Windows)
Downloads
15
Maintainers
Readme
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