timezonenpmpackage

1.0.0 • Public • Published

terminal-text-align

A small JavaScript library for aligning text in the terminal.

Installation

You can install the package using npm

npm install terminal-text-align

Usage

import * from "terminal-text-align"

left("Left aligned text");
right("Right aligned text");
center("Center aligned text");

API

left(text: string) Aligns the given text to the left.

right(text: string) Aligns the given text to the right.

center(text: string) Aligns the given text to the center.

Keep in mind that this package may not work on all terminals and operating systems and it may not be the most compatible or portable way to align text in the terminal. Also, this package does not handle console resizing, so the text will not reposition if the console size changes.

Readme

Keywords

none

Package Sidebar

Install

npm i timezonenpmpackage

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

1.39 kB

Total Files

3

Last publish

Collaborators

  • kicatugi