prompt-path
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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).

Readme

Keywords

Package Sidebar

Install

npm i prompt-path

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

10.8 kB

Total Files

15

Last publish

Collaborators

  • paveldymkov