0.0.20 • Published 4 years ago

autocolor.js v0.0.20

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

autocolor.js

Automatically colors your console output!

Installation

npm i autocolor.js

Import

Via require

const ac = require("autocolor.js")

Via module import

import * as ac from "autocolor.js"

Usage

Make sure that you have imported the module!

You can use the module the same way as console.log()

no colorautomatically colored
console.log("info: insert text here")ac.log("info: insert text here")
console.debug("info: insert text here")ac.debug("info: insert text here")
console.warn("info: insert text here")ac.warn("info: insert text here")
console.error("info: insert text here")ac.error("info: insert text here")

Contribute

Adding keywords

To add color to a specific keyword or pattern, you'll have to create a new file in src/keywords/keywords.

If you want, you can duplicate an already existing keyword.

Make the code changes you desire and open a pull request! :rocket:

Important: You also have to add your newly created Keyword to the array (registeredKeywords) in src/keyword/keywords.ts.

0.0.20

4 years ago

0.0.12

4 years ago

0.0.13

4 years ago

0.0.14

4 years ago

0.0.15

4 years ago

0.0.16

4 years ago

0.0.17

4 years ago

0.0.18

4 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.5

4 years ago

0.0.3

4 years ago

0.0.4

4 years ago

0.0.2

4 years ago