2018-12-26 02:37:03 +01:00
|
|
|
const {stdout: stdoutColor} = require('supports-color');
|
2019-07-12 09:40:23 +03:00
|
|
|
|
2019-07-12 19:19:53 +02:00
|
|
|
const chalkFactory = require('./factory');
|
2017-06-20 21:17:16 +02:00
|
|
|
|
2019-07-12 19:19:53 +02:00
|
|
|
class ChalkStdout {
|
2019-03-12 12:53:03 +00:00
|
|
|
constructor(options) {
|
2019-07-12 19:19:53 +02:00
|
|
|
return chalkFactory(stdoutColor, ChalkStdout, options);
|
2019-03-12 12:53:03 +00:00
|
|
|
}
|
|
|
|
|
}
|
2017-06-29 16:46:19 -07:00
|
|
|
|
2019-07-12 19:19:53 +02:00
|
|
|
module.exports = chalkFactory(stdoutColor, ChalkStdout);
|
2018-02-11 02:59:24 -07:00
|
|
|
module.exports.supportsColor = stdoutColor;
|