{"_id":"@ali_lotfi/trumpsay","name":"@ali_lotfi/trumpsay","dist-tags":{"latest":"2.0.0"},"versions":{"2.0.0":{"name":"@ali_lotfi/trumpsay","version":"2.0.0","description":"Make your terminal great again with Trump quotes","main":"trumpsay.js","type":"module","bin":{"trumpsay":"trumpsay.js"},"scripts":{"start":"node trumpsay.js","test":"node trumpsay.js --help"},"keywords":["trump","cowsay","terminal","fun","cli","ascii"],"author":{"name":"Ali Lotfi"},"license":"MIT","dependencies":{"axios":"^1.12.2","chalk":"^5.6.2","minimist":"^1.2.8"},"engines":{"node":">=16.0.0"},"_id":"@ali_lotfi/trumpsay@2.0.0","gitHead":"09bcbb0c43c0408110b1f1c5aba07be8f2fd380e","_nodeVersion":"20.20.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-EPaDp+o2zwqx4VxsX2NgKr9qZXfgTxH+PuEUUbQcSc+Jg98QhUpmtnlZ0pFv7PnKCQhXLV2kOdKgOAi8T2M6ZA==","shasum":"97d97122ff62b020db8dcdc26461803a95046034","tarball":"https://registry.npmjs.org/@ali_lotfi/trumpsay/-/trumpsay-2.0.0.tgz","fileCount":4,"unpackedSize":26897,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFGtsm7yBFbfTMIK9wagY5FxwnkXSDbmDOlg7zKpCtifAiBcHgkXw7DLwRMmQ/LuxPH2jysZuKpdX+ov8qGrdoxAjw=="}]},"_npmUser":{"name":"ali_lotfi","email":"me.alidev@gmail.com"},"directories":{},"maintainers":[{"name":"ali_lotfi","email":"me.alidev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/trumpsay_2.0.0_1779481594946_0.8986593163116838"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-22T20:26:34.771Z","2.0.0":"2026-05-22T20:26:35.091Z","modified":"2026-05-22T20:26:35.328Z"},"maintainers":[{"name":"ali_lotfi","email":"me.alidev@gmail.com"}],"description":"Make your terminal great again with Trump quotes","keywords":["trump","cowsay","terminal","fun","cli","ascii"],"author":{"name":"Ali Lotfi"},"license":"MIT","readme":"# 🇺🇸 trumpsay\n\n> Like `cowsay`, but Trump. Make your terminal great again!\n\nA fun CLI tool that displays quotes from Donald Trump in ASCII art speech bubbles, inspired by the classic `cowsay` command.\n\n```\n ___________________________________\n< Make terminals great again! >\n -----------------------------------\n  \\\n   \\\n    \\\n⠀⠀⠀⡀⠀⡄⣠⢄⡤⣤⠀⣦⣠⡄\n⠀⠀⠀⠀⣀⣀⢟⠼⠣⠠⡅⡻⠜⠃⢀⢿⣷⡿⢘⢸⣭⢰⠠⠤\n⠀⠀⠀⠁⠉⠉⢀⠒⠜⠸⠶⠶⢐⢛⠳⠶⠶⢒⣾⢘⢰⣴⢸⠇⡧⣌⣠⣔⡀\n⠀⠀⠀⠀⠀⣀⡸⣛⣙⣛⣛⣘⣿⡆⡛⣛⣘⣛⣚⣸⣰⡅⢘⣛⢱⠠⢶⡆⠂⠀⡄\n⠀⠀⠀⠀⣴⣶⡦⡭⡯⡏⠹⠽⣾⡀⡇⠻⠿⡧⡧⡏⠽⠥⣬⡭⡭⣈⡥⡭⣃⣇⣇\n⠀⠀⠀⣀⢸⡟⠣⠬⠭⢵⡆⣾⠿⣃⡀⣩⡥⡦⡦⡆⠈⠩⠌⠩⠥⠬⠍⡇⣿⣿⣿⠇\n⠀⠀⣤⠽⢧⡇⠩⡍⠭⢭⣧⣽⠰⢾⡇⣿⠁⣧⣧⡇⢩⡅⣭⠈⣭⣭⡅⠆⠿⠏⠿\n⣶⡆⣿⣴⣶⡆⣛⣟⣛⠱⣾⣯⠘⢇⣙⣛⣻⡃⣙⣛⣻⢃⣙⡛⡻⡃⢤⣼⣧⡿⠁\n⠙⢃⣉⠾⢹⡇⣿⡿⠽⢨⢹⣽⣤⡬⠉⡍⢡⣥⠉⣭⣭⣬⣭⠄⠥⠰⠆⠀⠶\n⠀⣼⣭⢐⡊⡁⣛⡻⠿⢲⣶⣶⣶⠰⠐⢲⣶⣶⡆⠆⢐⣒⠒⢀⡃⣀⠛⠋⣽⠁\n⠀⣶⣛⢸⣯⣽⢰⢾⡏⣿⣺⣸⣿⢿⡯⣓⣒⣺⠩⢭⢘⣻⢐⣸⠡⢇⣶⣾⣟\n⠀⣸⣿⢨⣝⣿⠘⢢⡗⣗⣶⢱⣷⡎⣷⢑⣾⣾⠘⠛⢘⣛⢘⣛⢶⣾⠛⡾⠿\n⠀⣿⢙⣴⣆⣹⢸⣿⣥⢥⡍⣭⢩⣥⣥⢨⣭⣭⢸⣟⢸⣟⢸⣟⢥⣤⣿⡇⣿⣠⡀\n⠀⠉⠸⡌⣓⡀⢸⣯⣻⢼⡇⣿⣤⡟⣧⢰⣿⣿⢈⣛⡈⣛⣈⡛⣛⠟⢛⡃⣶⠘⣷⢢⡄\n⠀⠀⠀⠀⠻⠿⢆⡤⡟⣼⣤⢻⡋⢡⢳⣶⣟⣛⡆⣻⣁⣿⣟⣁⠟⠒⢰⡆⠀⠈⠁\n⠀⠀⠀⠀⠀⠀⠙⢳⢩⢩⣯⠌⡾⣭⢐⣤⣸⣿⡇⣿⣻⣻⣿⡻⠖⣀⢸⡇\n⠀⠀⠀⠀⠀⠀⠀⠀⢿⣼⣸⣿⡰⣿⠠⢭⠽⢿⣷⢻⣿⡿⡿⣾⡗⠻⢸⡇⣿⡄\n⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣙⣛⢻⣃⢶⣶⡶⢂⡸⣇⣼⠻⢸⡇⡆⠶⠰⢱⢂⢡\n⠀⠀⠀⠀⠀⠀⠀⠀⠀⠺⠱⣿⠲⠏⠾⠍⠐⠾⠷⢯⣷⣻⠸⠇⡂⣻⢽⢘⡳⣲⢰\n⠀⠀⠀⠀⠀⠀⠀⢶⣷⡟⣷⢹⣼⠘⣿⣶⠐⣿⣶⣘⢶⡎⡆⡆⡆⣿⣿⣝⣗⣾⣾⣂\n⠀⠀⠀⠀⠀⠀⢶⣾⠏⡇⠻⢍⣽⠔⠿⠿⢶⠿⠏⣿⢻⢅⣃⡂⣵⣭⣾⣿⣷⣾⣿⣧\n⠀⠀⠀⠀⢠⢸⣸⠾⢄⠃⡇⣷⠠⠿⢸⠸⢽⠇⠇⣾⢰⢲⣿⢡⠛⡍⣿⢛⡓⠗⢿⣘⣀\n⠀⠀⠀⠀⣬⢰⡾⡶⡜⠏⣹⠍⣒⡈⣛⡁⣛⡁⠴⠇⡎⣬⣭⢨⡇⣚⣹⢘⠃⡼⢖⣬⡍⡆\n...\n```\n\n## ✨ Features\n\n- 🎨 **Simple ASCII Art** - One Trump character (Braille art)\n- 💬 **Speech & Thought Bubbles** - Say or think mode\n- 🌐 **API Integration** - Fetch real Trump quotes from API\n- 📝 **Local Quotes** - Built-in fallback quotes\n- 💾 **Caching** - Cache API responses for offline use\n- 🎯 **Customizable** - Adjust bubble width\n\n## 📦 Installation\n\n### From Source\n```bash\ngit clone https://github.com/Alilotfi09/trumpsay.git\ncd trumpsay\nnpm install\nnpm link\n```\n\n## 🚀 Usage\n\n### Basic Usage\n\nDisplay a random quote:\n```bash\ntrumpsay\n```\n\nDisplay custom text:\n```bash\ntrumpsay \"Make America Great Again!\"\n```\n\nUse the quote option:\n```bash\ntrumpsay -q \"I know words, I have the best words\"\n```\n\n### Quote Sources\n\n```bash\n# Fetch from API (default if no text provided)\ntrumpsay --api\n\n# Use only local quotes\ntrumpsay --local\n```\n\n### Bubble Styles\n\n```bash\n# Thought bubble instead of speech\ntrumpsay --think \"Thinking tremendous thoughts...\"\n\n# Custom bubble width\ntrumpsay -w 60 \"This is a longer message\"\n```\n\n### Caching\n\n```bash\n# Cache API results\ntrumpsay --api --cache\n\n# Next call uses cached quote (if available)\ntrumpsay --cache\n```\n\n### Help & Info\n\n```bash\n# Show help\ntrumpsay --help\n\n# List all local quotes\ntrumpsay --list\n```\n\n## 📋 Command Reference\n\n```\nUsage: trumpsay [options] [message]\n\nOptions:\n  -q, --quote <text>     Display custom quote\n  -l, --local            Use only local quotes\n  -a, --api              Fetch quote from API\n  -u, --api-url <url>    Custom API endpoint\n  -c, --cache            Cache API results\n  -w, --width <n>        Set speech bubble width (default: 50)\n  -t, --think            Thought bubble instead of speech\n  --list                 List all local quotes\n  -h, --help             Show help message\n```\n\n## 🎯 Examples\n\n### Fortune Cookie Style\n```bash\nfortune | trumpsay\n```\n\n### Weather Report\n```bash\ncurl wttr.in/NewYork?format=3 | trumpsay\n```\n\n### Random Dad Joke\n```bash\ncurl -H \"Accept: text/plain\" https://icanhazdadjoke.com/ | trumpsay\n```\n\n### Daily Quote on Login\nAdd to your `.bashrc` or `.zshrc`:\n```bash\ntrumpsay --api --cache\n```\n\n### Thinking Mode\n```bash\ntrumpsay --think \"Should I build a wall?\"\n```\n\n\n## 🔧 API\n\nBy default, trumpsay uses the [What Does Trump Think API](https://whatdoestrumpthink.com/api-docs/api-reference):\n```\nhttps://api.whatdoestrumpthink.com/api/v1/quotes/random\n```\n\nExpected API response format:\n```json\n{\n  \"message\": \"Quote text here\"\n}\n```\n\nOr:\n```json\n{\n  \"quote\": \"Quote text here\"\n}\n```\n\nOr plain text string.\n\n## 📝 Built-in Quotes\n\ntrumpsay includes 8 fallback quotes:\n- \"I will build a great wall — and nobody builds walls better than me.\"\n- \"We will make America great again.\"\n- \"Sometimes by losing a battle you find a new way to win the war.\"\n- \"The beauty of me is that I'm very rich.\"\n- \"My whole life is about winning. I don't lose often.\"\n- \"Nobody knows the system better than me.\"\n- \"I'm, like, a really smart person.\"\n- \"I know words, I have the best words.\"\n\nView all quotes with `trumpsay --list`\n\n## 🎨 ASCII Art\n\nThe Trump ASCII art uses Unicode Braille characters for a detailed portrait that works in modern terminals. It's optimized for readability and humor.\n\n## 💾 Cache Storage\n\nWhen using `--cache`, quotes are stored in:\n```\n~/.trumpsay_cache.json\n```\n\nCache format:\n```json\n{\n  \"last\": \"Quote text\",\n  \"when\": \"2025-10-13T12:00:00.000Z\"\n}\n```\n\n## 🤝 Contributing\n\nContributions are welcome! Here's how you can help:\n\n### Ideas for Contributions\n- Add more local quotes\n- Improve ASCII art\n- Fix bugs\n- Add new features (e.g., color options, more characters)\n- Improve documentation\n\n### Development Setup\n```bash\n# Clone the repository\ngit clone https://github.com/alilotfi09/trumpsay.git\ncd trumpsay\n\n# Install dependencies\nnpm install\n\n# Run directly for testing\nnode trumpsay.js \"Test message\"\n\n# Link globally for system-wide testing\nnpm link\n\n# Test the linked version\ntrumpsay \"Test message\"\n```\n\n## 🙏 Acknowledgments\n\n- Inspired by the classic `cowsay` by Tony Monroe\n- Trump quotes from [What Does Trump Think](https://whatdoestrumpthink.com/)\n- ASCII art created with Unicode Braille characters\n- Built with:\n  - [chalk](https://github.com/chalk/chalk) - Terminal colors\n  - [minimist](https://github.com/minimistjs/minimist) - CLI parsing\n  - [axios](https://github.com/axios/axios) - HTTP requests\n\n## 🐛 Known Issues\n\n- ASCII art requires Unicode support in terminal\n- Very narrow terminals (< 60 columns) may display incorrectly\n- Some terminal emulators may not render Braille characters properly\n\n\n## 📊 Requirements\n\n- Node.js >= 16.0.0\n- Terminal with Unicode support\n- Internet connection (for API mode)\n\n## 🌟 Star This Project\n\nIf you find this useful or entertaining, please consider giving it a star! ⭐\n\n## 📞 Support\n\n- 🐛 [Report a bug](https://github.com/Alilotfi09/trumpsay/issues)\n- 💡 [Request a feature](https://github.com/Alilotfi09/trumpsay/issues)\n- 📖 [Read the docs](https://github.com/alilotfi09/trumpsay)\n\n---\n\n**Made with 💻 and ☕**\n\n*Disclaimer: This is a parody project for entertainment purposes. All quotes are either from public sources or fictional. Not affiliated with Donald Trump.*\n","readmeFilename":"README.md","_rev":"1-dc054bd3e3ebe4b9c245803cd6f29f1d"}