Improve the clarity of the following request [code]
- User
Improve the clarity of the following request
Create a JavaScript CLI application in a single .mjs file with the following functionality: It accesses a CSV file and extract all the entries in the `Name` column. The extracted entries are all unique IDs. It will then generate new unique IDs using nanoid, which should be different from the unique IDs extracted from the CSV file. The user should be able to configure the id length and the seed via the `--edit or -e` flag, which displays an interactive prompt asking for the seed and id length. Additionaly, the path to the CSV file is set via `--edit` flag as well.. The configuration can be viewed via the `--config or -c` flag. The argument of this application is `--number or -n value`. The argument allows the user to specify the number of unique IDs to be generated. Implement a comprehensive help menu accessible via the `--help` or `-h` flag, providing detailed information about all available commands and their usage. Aditionaly, implement robust error handling mechanisms to provide clear feedback to users in case of invalid inputs or other errors. Moreover, use the ES module format for the JavaScript code. Although the requirement is to keep everything in a single .mjs file, modularizing related functions (even within the same file) using helper methods can improve readability and maintainability. Additionaly, add clear and concise code comments. Furthermore, use a library like commander.js or yargs for parsing command-line arguments, as it simplifies handling different flags and commands. - Assistant
Please create a JavaScript CLI application as a single
.mjsfile with the following features:-
CSV File Parsing: The application should read a CSV file and extract all entries from the
Namecolumn. These extracted entries should be unique IDs. -
Generate Unique IDs: The application will generate new unique IDs using the
nanoidlibrary. These new IDs must be different from the ones extracted from the CSV file. -
Configuration Options:
- ID Length and Seed: Users can set the ID length and seed via an or flag, which triggers an interactive prompt to ask for these values.
-