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

filepick

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

filepick

File Picker for Command Line Applications

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

Filepick

A file picker made for node cli applications.

Documentation

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);
});

Keywords

filebrowser

FAQs

Package last updated on 02 Aug 2017

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