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 (OS X) and Explorer (Windows)

Source
npmnpm
Version
2.0.0
Version published
Weekly downloads
2
-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

current-path Build Status

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

Usage

$ npm install --save current-path
const currentPath = require('current-path');

currentPath().then(path => {
	console.log(path);
	//=> '/Users/sindresorhus/dev/current-path'
});

API

currentPath()

Returns a promise for the current directory in Finder or Explorer.

  • current-path-cli - CLI for this module

License

MIT © Sindre Sorhus

Keywords

current

FAQs

Package last updated on 01 May 2016

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