How to use the grey function from colors
Find comprehensive JavaScript colors.grey code examples handpicked from public code repositorys.
GitHub: Arilas/CodeceptJS
97 98 99 100 101 102 103 104 105
if (pending) { if (!failed) style = style.bgYellow; msg += `, ${pending} pending`; } msg += " "; print(status + style(msg) + colors.grey(` // ${duration}`)); } };
705
0
2
GitHub: athombv/node-homey
1607 1608 1609 1610 1611 1612 1613 1614 1615 1616
b = classes[b]; return a.title.en.localeCompare(b.title.en); }) .map(classId => { return { name: classes[classId].title.en + colors.grey(` (${classId})`), value: classId, }; }); },
4
5
4
+ 2 other calls in file
GitHub: MelleNooijen/MelleWS
106 107 108 109 110 111 112 113 114 115
} var logIndicator = colors.yellow("[Request]") if (req.req.rawHeaders[3].match("curl")) { var logIndicator = colors.yellow("[API Call]") } console.log(logIndicator + colors.grey(" IP: " + colors.white(reqIp) + ", Method: " + colors.white(reqMeth) + ", Resource: " + colors.white(reqReso))); res.on('finish', function () { var codeString = res.statusCode.toString(); if (codeString.startsWith("2")) { var statCol = colors.green;
1
3
2
+ 11 other calls in file
colors.yellow is the most popular function in colors (76 examples)