Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

console-tag

jacknotblack517MIT1.0.1

Add console['myTag'] and gives the tag color

console

readme

console-tag

Installation

npm install --save console-tag

Usage

import consoleTag from 'console-tag';
consoleTag.setTag('myTag1','pink');
consoleTag.setTag('myTag2','#ffc0cb');
console.myTag1('console logging something under myTag1 with pink tag')
const myTags = [
  { tagName: 'myTag3', color: 'blue' },
  { tagName: 'myTag4', color: '#ffc0cb' },
];
consoleTag.setTags(myTags);
console.myTag3('console logging something under myTag3with blue tag')