chalk-stderr
v1.0.2
Published
Chalk for stderr
Downloads
15
Maintainers
Readme
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.