auraterm

๐ŸŽจ auraterm - Style terminal output with ease

auraterm auraterm auraterm

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


๐Ÿ“ฆ 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:


๐Ÿ“ 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 test

You 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

auraterm


๐Ÿ‘ค Author

Made with โค๏ธ by @usmonovshohruxmirzo
Maintained by WebBro Software


๐Ÿค Contributing

We welcome contributions from the community!

Steps to Contribute:

  1. ๐Ÿด Fork the repository
  2. ๐Ÿ› ๏ธ Create a new branch: git checkout -b my-feature
  3. โœจ Add your changes or improvements
  4. โœ… Build and test: npm run build && npm run test
  5. ๐Ÿ“ฅ Commit and push: git commit -m "Add: my awesome feature"
  6. ๐Ÿ“ช Open a pull request

๐Ÿ’ฌ Questions or ideas? Open an issue


๐Ÿ“„ License

MIT