@webbro-software/auraterm
v1.0.9
Published
A simple, fun, and minimal terminal text styling library.
Maintainers
Readme
🎨 auraterm - Style terminal output with ease
A minimal, developer-first terminal styling utility.
Built for simplicity and joy — style your terminal output with colors, backgrounds, gradients, and text decorations using a clean, intuitive API.
✨ Features
- ⚡ Tiny, fast, and dependency-free
- 💅 Intuitive API:
auraterm("red", "bold")("Hello") - 🌈 Full gradient support:
gradient:text:red-blue - 🎨 Foreground, background, and styles (bold, italic, etc.)
- 🧠 Extensible design — add custom styles if needed
- 🧪 Great for CLI tools, test output, or learning projects
📦 Installation
npm install @webbro-software/auraterm🚀 Usage
import { auraterm } from "@webbro-software/auraterm";
console.log(auraterm("red")("This is red"));
console.log(auraterm("green", "bold")("Bold green text"));
console.log(
auraterm("bgBlue", "white", "underline")("White on blue background")
);
console.log(auraterm("gradient:text:red-blue")("Gradient from red to blue"));
console.log(
auraterm("gradient:bg:orange-purple", "white")("Gradient BG with white text")
);🎨 Supported Styles
✅ Text Colors
black, red, green, yellow, blue, magenta, cyan, white
brightBlack, brightRed, ..., brightWhite
✅ Background Colors
bgBlack, bgRed, ..., bgWhite
bgBrightRed, ..., bgBrightWhite
✅ Text Effects
bold, dim, italic, underline, blink, inverse, hidden, strikethrough
⚡ Gradient Support
auraterm("gradient:text:red-blue")("Rainbow text");
auraterm(
"gradient:bg:green-yellow",
"black"
)("Black text on gradient background");You can use any of the following named colors:
black, red, green, yellow, blue, magenta, cyan, white,
orange, purple, pink, gray
🧠 How Gradient Works
To apply gradients:
- Text gradient:
gradient:text:fromColor-toColor - Background gradient:
gradient:bg:fromColor-toColor - Add a solid foreground color with background gradients (e.g.
"white","black")
📁 Folder Structure
auraterm/
├── dist/ # 🔧 Compiled output
├── src/ # 💡 Source code
│ ├── core/ # 🎯 Core logic
│ │ ├── applyStyles.ts
│ │ └── codes.ts
│ ├── auraterm.ts # 🧠 Main function
│ ├── index.ts # 🚪 Entry export
├── tests/ # 🧪 Test cases
├── README.md # 📘 This doc
├── package.json # 📦 Config
├── tsconfig.json # ⚙️ TypeScript settings🧪 Run Tests
npm install
npm run testYou should see styled text printed with colors, effects, and gradients.
🔧 Dev Commands
| Command | Description |
| --------------- | ------------------------ |
| npm run build | Compile TypeScript |
| npm run test | Run test file manually |
| npm link | Link locally for dev use |
📚 Example Output
👤 Author
Made with ❤️ by @usmonovshohruxmirzo
Maintained by WebBro Software
🤝 Contributing
We welcome contributions from the community!
Steps to Contribute:
- 🍴 Fork the repository
- 🛠️ Create a new branch:
git checkout -b my-feature - ✨ Add your changes or improvements
- ✅ Build and test:
npm run build && npm run test - 📥 Commit and push:
git commit -m "Add: my awesome feature" - 📪 Open a pull request
💬 Questions or ideas? Open an issue
