댓글 검색 목록

[Nodejs] string-width - 문자열의 시각적 폭 - 문자열을 표시하는 데 필요한 열의 수를 가져옵니다.

페이지 정보

작성자 운영자 작성일 19-03-07 12:14 조회 403 댓글 0

https://github.com/sindresorhus/string-width 


const stringWidth = require('string-width');

stringWidth('');
//=> 2

stringWidth('\u001b[1m古\u001b[22m');
//=> 2

stringWidth('a');
//=> 1


댓글목록 0

등록된 댓글이 없습니다.

웹학교 로고

온라인 코딩학교

코리아뉴스 2001 - , All right reserved.