A file picker made for node cli applications.
npm install filepick --save
Get the full path of an selected file
filepick(directory, options) -> Promise
- question (string) Show the question for select the file. Default: 'Choose a file'.
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);
});