New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

prompt-path

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prompt-path

Get the file system path in CLI app

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

prompt-path

build: passing test: 1.0.0

When you need to prompt a path in your CLI app.

Usage

const { promptPath } = require("prompt-path");

promptPath().then((path) => {
    console.log(path);
});

Params (optional)

const path = await promptPath({
    basePath: "~",
    prefix: "file: ",
    target: PromptPathTarget.File,
});
  • basePath Initial path (current directory by default).
  • prefix The prompt string to use ('> ' by default).
  • target File or directory (both by default).

Keywords

prompt

FAQs

Package last updated on 20 Nov 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