[node.js] console.log 출력 글자 색 적용
Programing/Node.js 2014. 11. 28. 00:12 |ANSI코드
0 초기화 합니다.
1 색을 밝게 합니다.
30 - 37 글자색 지정
40 - 47 배경색 지정
사용 방법
console.log('\u001b[31m', 'Jaeho');
console.log('\u001b[1m', 'Jaeho');
console.log('\u001b[0m', 'Jaeho');
console.log('\u001b[41m', 'Jaeho');
console.log('\u001b[32m', 'Jaeho');
console.log('\u001b[33m', 'Jaeho');
결과화면
'Programing > Node.js' 카테고리의 다른 글
[node.js] crypto 모듈 (0) | 2014.12.03 |
---|---|
[node.js] 기본 내장 모듈 (0) | 2014.11.30 |
[node.js] exports 객체와 모듈 (0) | 2014.11.30 |
[Node.js] process 객체 (0) | 2014.11.30 |
[Node.js] 전역변수, 전역 객체, time, 특수문자 (0) | 2014.11.28 |
댓글을 달아 주세요