term_glyph
1.2.2, released 2 years ago by tools.dart.dev
Provides useful Unicode glyphs and plain ASCII alternatives for command-line applications.
WASM-readyQuiet but busy
What it does
This package contains getters for common Unicode characters and their ASCII equivalents. It supports a transparent ASCII mode switch for shells that cannot display Unicode.
AI-written summary of version 1.2.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are building a command-line application that needs terminal glyphs.
- You need fallback ASCII representations for terminals lacking Unicode support.
Skip it when
- You are building a graphical user interface (GUI) application.
Strengths
- Ensures ASCII glyphs have the same character length to maintain terminal alignment.
- Easy to toggle ASCII mode dynamically based on platform or environment.
Weaknesses
- Limited usefulness outside of command-line applications.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
import 'package:term_glyph/term_glyph.dart' as glyph;
String bulletedList(List<String> items) =>
items.map((item) => "${glyph.bullet} $item").join("\n");Works with
Packages commonly used together with term_glyph: ones it builds on, ones built on it, and its own family.
- source_spanBuilt on term_glyphStandard representation for source code locations, spans, and human-friendly error messages.
- test_apiBuilt on term_glyphThe user facing API for structuring Dart tests and checking expectations.
- matcherBuilt on term_glyphSupport for specifying test expectations via an extensible Matcher class.
- test_descriptorBuilt on term_glyphDeclarative API for creating and verifying file and directory structures in tests.
- sassBuilt on term_glyphA Dart implementation of Sass for compiling Sass and SCSS to CSS.