aliasAlignment
aliasAlignment (aliased as aa) normalises the extended Align type — which includes convenience aliases like "start" and "end" — into the canonical Alignment values accepted by layout functions.
Signature
function aliasAlignment(align: Align): Alignment
Mapping
"start" → "left"
"end" → "right"
"left" → "left" // pass-through
"center" → "center" // pass-through
"right" → "right" // pass-through
Parameters
align: Any value of typeAlign("start","center","end","left","right").
Return Value
A canonical Alignment string — "left", "center", or "right".
Aliases
Exported as both aliasAlignment and aa.
Usage
import { aa } from "ts-better-console";
aa("start"); // "left"
aa("end"); // "right"
aa("center"); // "center"
Want to support this project?
If you find ts-better-console useful and want to support its development, consider starring the GitHub repository or buying me a coffee! Your support helps me dedicate more time to improving the library and adding new features.
Want to contribute to this project?
Contributions are welcome! If you're interested in improving the library, fixing bugs, or adding new features, feel free to check out the GitHub repository and submit a pull request. Whether you're a seasoned developer or new to open source, your contributions can make a difference!