Skip to content

A file picker made for node cli applications.

Notifications You must be signed in to change notification settings

wac2007/filepick

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Filepick

A file picker made for node cli applications.

Installation

npm install filepick --save

Methods

Get the full path of an selected file

filepick(directory, options) -> Promise

Options

  • question (string) Show the question for select the file. Default: 'Choose a file'.

Example

const filepick = require('filepick');

filepick('.', {
  question: 'Escolha um arquivo de backup'
}).then(file => {
  console.log('file', file);
}).catch(err => {
  console.log('Error Getting the file!', err);
});

About

A file picker made for node cli applications.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published