
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
file-prompt
Advanced tools
An interactive prompt for files inspired by git add -i. By supplying a filter and a base directory and calling the fileprompt
function you can interactively select from a list of matching files in a number of ways intended to speed up typing time trying to guess and remember paths. This tool can be used with Gulp to send a list of files to gulp.src
.
Using npm:
$ npm install expect
In ES6:
import fileprompt from 'fileprompt'
fileprompt({ basedir: process.cwd(), filter: '*.js' })
.then((files) => {
// Array of absolute path files
})
.catch((e) => {
// e is an instance of an Error Object that happened along the way.
})
In ES5:
var fileprompt = require('fileprompt');
fileprompt({ basedir: process.cwd(), filter: '*.js' })
.then((files) => {
// Array of absolute path files
})
.catch((e) => {
// e is an instance of an Error Object that happened along the way.
})
The following methods of input are currently supposed:
Main Menu
Files
You can also supply multiple arguments like 4 5-10 -8
and it will do the following:
Currently the following features are supported
Lets you add files by entering directories and selecting files. Pressing <enter>
will return to the main menu.
Lists all levels of files matching the supplied filter. Pressing <enter>
will return to the main menu.
Asks for a glob string such as **/*.js
. If matches are found it will allow you to select from the list of matching files. Pressing <enter>
will return to the main menu.
Executes git diff --name-only
to get a list of files changed since the last git commit. Pressing <enter>
will return to the main menu.
This tool was lovingly made for use at VenueBook.
BSD-3-Clause (c) 2015 VenueBook, Inc. (https://venuebook.com)
FAQs
An interactive prompt for selecting files from a directory.
The npm package file-prompt receives a total of 5 weekly downloads. As such, file-prompt popularity was classified as not popular.
We found that file-prompt demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.