Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
inquirer-select-directory
Advanced tools
Readme
A directory prompt for Inquirer.js.
This project is a fork of Inquirer-directory which does not limit the navigation to the current folder.
npm install --save inquirer-select-directory
This prompt is anonymous, meaning you can register this prompt with the type name you please:
inquirer.registerPrompt('directory', require('inquirer-select-directory'));
inquirer.prompt({
type: 'directory',
...
})
Change directory
to whatever you might prefer.
Takes type
, name
, message
, basePath
, options
properties.
See inquirer readme for meaning of all except basePath.
basePath is the relative path from your current working directory
inquirer.registerPrompt('directory', require('inquirer-select-directory'));
inquirer.prompt([{
type: 'directory',
name: 'from',
message: 'Where you like to put this component?',
basePath: './src'
}]).then(function(answers) {
//etc
});
default false
Set this to true if you to display files
inquirer.prompt([{
type: 'directory',
//...
options: {
displayFiles:true
}
}]).then(function(answers) {
//etc
});
default false
Set this to true if you to display hidden folders (and files if displayFiles is set to true
)
inquirer.prompt([{
type: 'directory',
//...
options: {
displayHidden:true
}
}]).then(function(answers) {
//etc
});
MIT
FAQs
A directory prompt for Inquirer.js
The npm package inquirer-select-directory receives a total of 22,668 weekly downloads. As such, inquirer-select-directory popularity was classified as popular.
We found that inquirer-select-directory 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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.