term_glyph
유용한 글리프 및 Windows 호환 대체 문자
- 스타
- 16
- 포크
- 11
- 최근 푸시(UTC)
- 2024. 12. 17.
- 프로젝트 상태
- 보관됨
원본 README
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
[!IMPORTANT]
This repo has moved to https://github.com/dart-lang/tools/tree/main/pkgs/term_glyph
This library contains getters for useful Unicode glyphs as well as plain ASCII alternatives. It's intended to be used in command-line applications that may run in places where Unicode isn't well-supported and libraries that may be used by those applications.
We recommend that you import this library with the prefix "glyph". For example:
import 'package:term_glyph/term_glyph.dart' as glyph;
/// Formats [items] into a bulleted list, with one item per line.
String bulletedList(List<String> items) =>
items.map((item) => "${glyph.bullet} $item").join("\n");
ASCII Mode
Some shells are unable to display Unicode characters, so this package is able to
transparently switch its glyphs to ASCII alternatives by setting the ascii
attribute. When this attribute is true, all glyphs use ASCII
characters instead. It currently defaults to false, although in the future it
may default to true for applications running on the Dart VM on Windows. For
example:
import 'dart:io';
import 'package:term_glyph/term_glyph.dart' as glyph;
void main() {
glyph.ascii = Platform.isWindows;
// Prints "Unicode => ASCII" on Windows, "Unicode ━▶ ASCII" everywhere else.
print("Unicode ${glyph.rightArrow} ASCII");
}
All ASCII glyphs are guaranteed to be the same number of characters as the corresponding Unicode glyphs, so that they line up properly when printed on a terminal. The specific ASCII text for a given Unicode glyph may change over time; this is not considered a breaking change.
사용 중인 의존성
의존성 목록 4 개
- csv개발 의존성
^6.0.0 - dart_flutter_team_lints개발 의존성
^3.0.0 - dart_style개발 의존성
^2.0.0 - test개발 의존성
^1.16.6
프로젝트에 맞는 저장소를 선택하려면?
사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.
- 이름, 작성자 또는 설명으로 검색하고 기술 주제로 범위를 좁힙니다.
- 스타, 포크, 최근 푸시를 함께 비교하세요. 스타는 관심의 지표이며 품질을 보장하지 않습니다.
- 사용하기 전에 GitHub에서 README, 라이선스, Issues를 확인하세요.
출처 및 관리
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗