npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

current-path

3.0.0

@sindresorhus

npmHomeRepoSnykSocket
Downloads:7
$ npm install current-path
DailyWeeklyMonthlyYearly

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