You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

cli-files-selector

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cli-files-selector

Select multiple files directly in terminal

1.1.0
latest
npmnpm
Version published
Maintainers
1
Created
Source

This package can make you choose multiple files from command line interface easily just using Arrow (UP, RIGHT, DOWN, LEFT) key for navigation, SPACE key for select or unselect item, ENTER key for returning selected files, and ESC key for cancel selection.

Usage

Require cfs module

const cfs = require('cli-files-selector')

Create interface (optional)

const interfaceObject = {
	cursorPosition : -1,				/* starter cursor position */
	cursorSign     : '<-',			/* cursor sign will be showed */
	width          : 30, 				/* selector area width */
	error          : undefined,	/* show error directly when it started */
	message        : 'Welcome', /* flash message for action status */
	path           : base,			/* where to selecting files */
	parentCursor   : [],				/* let it empty */
	data           : [],				/* direct data to be selected */
	selected       : []					/* selected files collection */
}

Selecting files interface

cfs.select().then( selected => {
	console.log(selected)
})

KINTARO XD

Just contact me if you have a question wa.me/6289633948126?text=What+is+cli+files+selector

Keywords

cli-files-selector

FAQs

Package last updated on 18 Jun 2023

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