2.2.0 • Published 5 years ago

inquirer-directory v2.2.0

Weekly downloads
16,115
License
MIT
Repository
github
Last release
5 years ago

inquirer-directory

Relative Directory prompt for inquirer

Build Status

Installation

npm install --save inquirer-directory

Features

  • Support for symlinked files
  • Vim style navigation
  • Search for file with "/" key

Key Maps

  • Press "/" key to enter search mode.
  • Press "-" key to go up (back) a directory.

Usage

This prompt is anonymous, meaning you can register this prompt with the type name you please:

inquirer.registerPrompt('directory', require('inquirer-directory'));
inquirer.prompt({
  type: 'directory',
  ...
})

Change directory to whatever you might prefer.

Options

Takes type, name, message, basePath properties.

See inquirer readme for meaning of all except basePath.

basePath is the relative path from your current working directory

Example

inquirer.registerPrompt('directory', require('inquirer-directory'));
inquirer.prompt([{
  type: 'directory',
  name: 'from',
  message: 'Where you like to put this component?',
  basePath: './src'
}]).then(function(answers) {
  // (answers.from is the path chosen)
});

asciicast

See also example.js for a working example

License

MIT

redux-saga-crud-generatorredux-saga-generatorredux-saga-crud-clicra-template-ltbycecra-template-cz-testrc-compgentest-widget-orderdel-generator-stepper@infinitebrahmanuniverse/nolb-inqaem-htl-generatorslush-new-componenttest-react-shaperart47@everything-registry/sub-chunk-1916fastlane-ionicfile-trackerflexso-cf-debugenviheinteractive-diff-patchdyw-rcomponent-generatorgraphql-layergomangenerator-morphishc-template-generatorhexin-coregenerator-fractal-compgenerator-hapiestgenerator-g-nextfractal-component-gengmailman@rafaelmedrib/troncophongdang-publishing-to-npmngxs-clingxs-cli-devbuildnfvmng-state-climaster-inquisitorlearning-cliplop-commanderplop-genploprplop-sampleplop-tpl-node-packageplop-generator-reduxtest-widget-order-componenttheme-gulpifiersveaturereact-archetypereact-pipedash-componentsimple-video-converterslidewinderspaceframework-clisimple-project-generatorsimple-scorm-packagershoganseam-plopreact-shaperreact-state-rxjs-cli@walts81/generator-vuex-ts@sundogee/codesmith@sugoi/cli@appmint/dataformaem-htl-builder@angular-ru/build-toolsaih-codegen@zalastax/nolb-inqarmand1m-development-toolkit@domoinc/da-plop@commonshost/cli@genesisx/design-system@genesisx/react-archetype@genesislcap/foundation-cli@hackoregon/jinn@http2/live@code-shaper/custom-cli@code-shaper/express@code-shaper/nextjs-generators@code-shaper/playwright-generators@code-shaper/plugin@code-shaper/react-generators@code-shaper/remix@code-shaper/repo-generators@code-shaper/typescript@code-shaper/vite-generatorsalloctrl@coderebus/react-archetypebrm@liascript/simple-scorm-packagercompgenrccompgen-vue@jose.conde/submarinecra-template-cp@morten-olsen/wrkdatajunction-ui@inheaden/ihecloud-admin-sdkcloud-admin-template-sdk@karenggv/graph-layer@kano/kbc-internalscode-shaper
2.2.0

5 years ago

2.1.0

7 years ago

2.0.0

8 years ago

1.1.4

8 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.1

8 years ago