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-1916shoganseam-ploptest-widget-order-componentsveature@rafaelmedrib/tronco@appmint/dataformhexin-coregomangraphql-layerinteractive-diff-patchlearning-cliihehc-template-generatorgmailmanmaster-inquisitorplop-sampleplop-tpl-node-packageplop-commanderplop-genplop-generator-reduxploprng-state-clinfvmngxs-clingxs-cli-devbuildphongdang-publishing-to-npmreact-shaperreact-pipedash-componentreact-state-rxjs-clireact-archetypesimple-video-convertersimple-project-generatorsimple-scorm-packagerslidewinderspaceframework-clitheme-gulpifier@angular-ru/build-tools@coderebus/react-archetype@fen89/prx@dudadev/duda-gen@hackoregon/jinn@http2/live@festicket/react-generators@genesislcap/foundation-cli@genesisx/react-archetype@genesisx/design-system@inheaden/ihe@liascript/simple-scorm-packager@matise/parlor-cli@netbasal/spectator-cli@ngxs/cli@karenggv/graph-layer@kano/kbc-internals@jose.conde/submarine@morten-olsen/wrk@ofir.fridman/ng-module-cli-generator@ofir.fridman/ngrx-cli-generator@proggarapsody/cgapi@procraft/widget-order-component@radic/hosting@radic/sites@sundogee/codesmith@sugoi/cli@sentinel-one/mgmt-angular-module-generator@revodigital/revo-cli@rezamoosavi/my-lib-vite@code-shaper/custom-cli@code-shaper/express@code-shaper/graphql-server@code-shaper/nextjs-generators@code-shaper/playwright-generators@code-shaper/plugin@code-shaper/remix-generators@code-shaper/repo-generators@code-shaper/typescript@code-shaper/vite-generators@code-shaper/react-generators@commonshost/cli@domoinc/da-plop@walts81/generator-vuex-ts@zalastax/nolb-inqaih-codegenaem-htl-builderalloctrlcode-shapercloud-admin-template-sdk
2.2.0

5 years ago

2.1.0

8 years ago

2.0.0

9 years ago

1.1.4

9 years ago

1.1.3

9 years ago

1.1.2

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.1

9 years ago