Modules§
Macros§
- cacheable
- Derive
Serialize/DeserializewithcamelCasefield renaming. Use for structs that are persisted to cache or serialized to JSON. - cacheable_
enum - Derive
Serialize/Deserializewithkebab-casevariant renaming. Use for enums that are persisted to cache or serialized to JSON.
Structs§
- Id
- A compact string identifier for use within records, key lookups, and more.
Supports unicode alphanumeric characters, forward slash
/, period., underscore_, and dash-. A leading@is supported to support npm package names. - IdError
- ID errors.
Enums§
- Light
Color - ANSI colors for a light theme.
- Style
- Types of colors based on state and usage.
Constants§
Traits§
Functions§
- apply_
style_ tags - Apply styles to a string by replacing style specific tags.
For example:
<file>starbase.json</file> - encode_
style_ tags - Encode a string so that style tags are not replaced.
- is_ci
- is_
ci_ env - is_
daemon_ env - is_
devbox - is_
docker - is_
formatted_ output - is_
headless - is_
local - is_
remote - is_ssh
- is_
test_ env - is_wsl
- parse_
style_ tags - Parses a string with HTML-like tags into a list of styled pieces.
For example:
<file>starbase.json</file> - parse_
tags - Parses a string with HTML-like tags into a list of tagged pieces.
For example:
<file>starbase.json</file> - remove_
style_ tags - Remove style and tag specific markup from a string.
Type Aliases§
- Dark
Color - ANSI colors for a dark theme.