npm-pray
v1.0.0
Published
A fun CLI tool that prints developer prayers to brighten your coding day
Maintainers
Readme
npm-pray 🙏
A fun CLI tool that prints developer prayers to brighten your coding day!
Installation
Install globally via npm:
npm install -g npm-prayUsage
After installation, you can use the pray command anywhere in your terminal:
# Get a random developer prayer
pray
# Get the same prayer all day
pray --daily
# Get prayers with a specific tag
pray --tag deploy
# List all available tags
pray --list
# Reset all state and start fresh
pray --reset
# Show help
pray --helpFeatures
- Randomized prayers: Never see the same prayer twice until you've seen them all
- Daily prayers: Get the same motivational prayer for the entire day
- Tagged prayers: Filter by specific development activities
- Local state: No network calls, everything stored locally
- Deck shuffle: Uses Fisher-Yates algorithm for fair randomization
Available Tags
build- Build and compilation prayersdeploy- Deployment and release prayerstest- Testing and QA prayersgit- Version control prayerslint- Code quality prayersops- Operations and infrastructure prayersqa- Quality assurance prayersfocus- Focus and debugging prayers
Examples
pray
# 🙏 May your code compile on the first try.
pray --daily
# ✨ May your tests always pass. (same prayer all day)
pray --tag deploy
# 🚀 May your deploys be boring and quick.
pray --list
# Available tags: build, deploy, test, git, lint, ops, qa, focus
pray --reset
# 🧽 Cleared local state. Fresh start. 🙏How It Works
The tool maintains a local state file at ~/.config/npm-pray/state.json that tracks:
- Shuffled deck of all prayers (no repeats until deck is empty)
- Individual decks for each tag
- Daily prayer cache
License
MIT
Contributing
Feel free to submit issues and pull requests to add more prayers or features!
