force blue color to be use bright blue on Windows - fixes #36
as the normal blue color is illegible
This commit is contained in:
parent
0b1c65dfd3
commit
fc6a9b27dc
3 changed files with 15 additions and 10 deletions
5
index.js
5
index.js
|
|
@ -7,6 +7,11 @@ var supportsColor = require('supports-color');
|
|||
var defineProps = Object.defineProperties;
|
||||
var chalk = module.exports;
|
||||
|
||||
// use bright blue on Windows as the normal blue color is illegible
|
||||
if (process.platform === 'win32') {
|
||||
ansiStyles.blue.open = '\u001b[94m';
|
||||
}
|
||||
|
||||
function build(_styles) {
|
||||
var builder = function builder() {
|
||||
return applyStyle.apply(builder, arguments);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue