freejsoncli
v3.0.0
Published
A simple CLI tool to generate random JSON data with user-defined keys and values.
Readme
Free JSON CLI 🚀
A simple CLI tool to generate random JSON data with user-defined keys and values.
📌 Features
✅ Generate JSON files with random data
✅ Select custom keys and data types
✅ Set word count for string values
✅ Save structured JSON output
📥 Installation
shnpm install -g freejsoncli
🚀 Usage
shfreejsoncli dev users 5
🔹 Interactive Prompts:
Available Data Types:
- string, number, boolean, email, phone, name, city, country, address, company, date
- How many keys should each object have?
- Enter key names and choose data types
- Optionally set word count for string fields
🔹 Example Output (users.json):
json
[
{
"name": "John Doe",
"email": "[email protected]",
"phone": "+123456789"
},
{
"name": "Jane Smith",
"email": "[email protected]",
"phone": "+987654321"
}
]
📌 Supported Data Types
- String (customizable word count)
- Number
- Boolean
- Phone
- Name
- City
- Country
- Address
- Company
- Date
🎯 Author
Mohammad Afzal
MERN Stack Developer | YouTube Creator
🔥 What’s New?
✅ Tells users available data types before prompting
✅ Properly structures inquirer responses
✅ Ensures variables are correctly initialized
✅ Cleaner CLI with better user guidance
This should work perfectly now! Let me know if you need more enhancements. 🚀🔥
