Socket
Book a DemoInstallSign in
Socket

autocolor.js

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

autocolor.js

Automatically colors your output!

0.0.20
latest
Source
npmnpm
Version published
Weekly downloads
19
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

autocolor

FAQs

Package last updated on 24 Mar 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.