Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ionited/art
Art in your terminal
https://github.com/ionited/art
ansi art bash cmd colors powershell terminal
Last synced: about 2 months ago
JSON representation
Art in your terminal
- Host: GitHub
- URL: https://github.com/ionited/art
- Owner: ionited
- Created: 2020-03-21T21:04:48.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-25T23:33:54.000Z (over 4 years ago)
- Last Synced: 2024-10-07T10:43:26.728Z (3 months ago)
- Topics: ansi, art, bash, cmd, colors, powershell, terminal
- Language: JavaScript
- Homepage:
- Size: 16.6 KB
- Stars: 10
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# Art
> Art in your terminal
## Quick start
### Install with NPM
```
npm i @ionited/art
```## Usage
Require the package in your Node.js file:
```javascript
const art = require('@ionited/art');
```### ANSI 8 Colors
Display ANSI 8 Colors (black, red, green, yellow, blue, magenta, cyan, white):
```javascript
art.blue('Hey! I am blue!');
```### Brighter colors
For brighter color put 'bright' before the color:
```javascript
art.brightRed('Hey! I am brighter red!');
```### Background colors
For background color put 'bg' before the color:
```javascript
art.bgYellow('Hey! I have yellow background!');
```Background colors also working with bright prefix:
```javascript
art.bgBrightGreen('Hey! I have brighter green background!');
```### Modificators
Style your texts with modificators (bold, dim, italic, underline, blink, inverse, invisible, strikethrough):
```javascript
art.bold('Hey! I am a bold text!');
```---
You can join styles and make art in your terminal:
```javascript
art.bgGreen.bold.yellow('A beatiful message!');
```### Animations
Make loadings or other animations easily:
```javascript
art.animation(frames: any, infinite?: boolean, fps?: number): void
```Example:
```javascript
art.animation(['#', '##', '###', '####', '#####']);
```