ansi-console
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Ansi Console

A super lightweight library to color your console.

Super easy to setup and use in your application. Modifying the Ansi code is also possible.

Initialization:

  • Javascript
// Common Js imports
const { ColorInit } = require('ansi-console')

// Initialization of the colors
const { colour, state, template } = ColorInit()

// Converting the input to Ansi Color pattern
console.log(colour.blue("This is a blue text"))
  • Typescript (Types included)
// Use ES6 Style imports for typescript
import { ColorInit } from 'ansi-console'

Package Sidebar

Install

npm i ansi-console

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

44.8 kB

Total Files

7

Last publish

Collaborators

  • dominikdanner