Socket
Book a DemoInstallSign in
Socket

current-path

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

current-path

Get the path of the current directory in Finder (macOS) and Explorer (Windows)

latest
Source
npmnpm
Version
3.0.0
Version published
Maintainers
1
Created
Source

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.

  • current-path-cli - CLI for this module

Keywords

current

FAQs

Package last updated on 10 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts