namastejs
v2.0.1
Published
A spiritual greeting from your JavaScript code. Because every function deserves a 'Namaste ๐'
Downloads
78
Maintainers
Readme
๐ Table of Contents
โจ What is namastejs?
A lightweight, fun, and powerful developer utility CLI. It started with a simple blessing and now supports real productivity tools like branch management, port killing, vault management, project cleaning, and more โ all accessible via npx.
โก Quick Start
npx namastejs๐ฆ Install (Optional)
npm install -g namastejs๐งฐ CLI Features
| Feature | Command Example | Description |
| ---------------------- | ---------------------------------------------- | ------------------------------------------------------------- |
| ๐ฌ Dev Blessing API | require('namastejs').blessingForDev() | Use it in your apps to inject positive vibes into the console |
| ๐ Default Greet | npx namastejs | Prints a dev blessing and a spiritual namaste quote |
| ๐ง๏ธ Typing Game | npx namastejs typing-rain | Fun CLI typing rain game |
| ๐ Get Common Commands | npx namastejs get <serviceName> | Fetch commonly used command of a service directly in terminal |
| ๐ Branch Updater | npx namastejs update --my=feature --from=dev | Pulls & merges a source branch into your current working one |
| ๐ Port Scanner | npx namastejs ports | Lists active local ports with process names and PIDs |
| โ Kill a Port | npx namastejs ports --kill=3000 | Frees a stuck port instantly |
| ๐ Size Analyzer | npx namastejs size | Displays top 5 heaviest folders/files in your project |
| ๐ง Breathing Timer | npx namastejs breathe | 60-second breathing animation for mental reset |
| ๐ Vault CLI | npx namastejs vault | Manage dev credentials (add/get/list/delete/clear) |
| ๐ฟ Project Cleaner | npx namastejs clear | Deletes node_modules, dist, build, and cache folders |
| โ๏ธ Project Setup | npx namastejs setup | Installs dependencies, checks tools, creates .env if needed |
๐ฎ Typing Rain
A fast-paced CLI typing game where words rain from the top ๐ง๏ธ
Type the words before they hit the ground.
npx namastejs typing-rain- Destroy falling words by typing them correctly
- Prevent words from touching the bottom
- Score as high as possible before game over
| Key / Action | What it does | | ----------------- | ------------------------------------ | | Type word + Enter | Removes matching falling word | | Backspace | Edit input (disabled after score 10) | | Space | โธ๏ธ Pause / โถ๏ธ Resume game | | Ctrl + C | Exit the game |
- Words fall continuously from the top
- Each missed word increases the Dropped count
- โ 3 dropped words = Game Over
- Game speed increases as score grows
- After level-up, backspace is disabled
๐ Size Analyzer
npx namastejs size # Scan current directory for largest files/folders
npx namastejs size --path=C:\dev # Scan a custom path (e.g., project directory or drive)๐ Vault Usage
npx namastejs vault add # Add a service (GitHub, Netlify, etc.)
npx namastejs vault get github # Get saved credentials
npx namastejs vault list # List all stored services
npx namastejs vault delete github # Delete a specific service
npx namastejs vault clear # Wipe the entire vault- Stored globally on your machine with safe (no-dependency) encryption.
๐ Setup Automation
npx namastejs setupThis command will ๐
- Check for required tools (git, node, npm)
- Install dependencies
- Create .env file from .env.sample (if available)
โค๏ธ Contribution
Want to improve namastejs or suggest a new feature?
- Fork this project on GitLab: gitlab.com/hardik.47/namastejs
- Submit an issue or merge request
- Feature ideas? Use npx namastejs help and see whatโs already built
โ๏ธ Made with
codeand a lot of โค๏ธ by Hardik B Chaudhary โ may code bless you ๐
