Json File prompt for inquirer
Parses the JSON file and returns the object as it's answer.
npm install --save inquirer-parse-json-file
- Support for symlinked files
- Vim style navigation
- Use either
downarrow keys or
enterto select option
This prompt is anonymous, meaning you can register this prompt with the type name you please:
jsonFile to whatever you might prefer.
See inquirer readme for meaning of all except basePath.
basePath is the relative path from your current working directory
inquirer;inquirerprompttype: "jsonFile"name: "json"message: "Select a json file?"basePath: "./src";
See also example.js for a working example
Unit test are written in Mocha. Please add a unit test for every new feature or bug fix.
npm test to run the test suite.
Documentation Add documentation for every API change. Feel free to send typo fixes and better docs!
Thanks to bmbarker90 and their inquirer-file-path repo that this is adapted from.
- none. Have an Idea? Submit a Feature Request.