Objective:
Create a Node.js script that manages a product catalog with three categories: books, clothing, and electronics. The script should generate JSON files for each category with at least 10 entries, each containing properties such as ID, name, type, price, discount, and currency. The user should be able to interactively choose a category (1 for books, 2 for clothing, 3 for electronics), and the script should display the corresponding items in a table format.
Requirements:
** Category Data: Generate data for books, clothing, and electronics categories in json format. Each entry should include properties: ID, name, type, price, discount, and currency.