Skip to content

dao42/ANSI-Markup-JS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ANSI Markup

Instalation

npm install ansi-text

Usage

import { ANSI } from 'ansi-text'

console.log(ANSI('<fg:gray>#Hello World!</fg>'));

Result:

#Hello World!

Markup Examples

<fg:green>Server is <bold>ready</bold></fg>
<fg:yellow><bold>User</bold>:</fg:yellow> some message from the user

About

A generator for ANSI text styles with a markup syntax

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published