3.0.0 • Published 3 years ago

current-path v3.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
3 years ago

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