1.0.2 • Published 5 years ago

chalk-stderr v1.0.2

Weekly downloads
3
License
ISC
Repository
github
Last release
5 years ago

chalk-stderr

Chalk for stderr

Install

$ npm install chalk supports-color chalk-stderr

or with yarn

$ yarn add chalk supports-color chalk-stderr

Usage

See chalk

const cherr = require('chalk-stderr');

// Everything else is same

How This Works

Everything else is delegated to peer dependencies as you can see:

const supportsColor = require('supports-color');
const Chalk = require('chalk').constructor;
module.exports = new Chalk({ level: supportsColor.stderr ? supportsColor.stderr.level : 0 });

That's all!

This is all what this package contains.