| 1 |
# x |
| 2 |
|
| 3 |
<p> |
| 4 |
<picture> |
| 5 |
<source media="(prefers-color-scheme: light)" srcset="https://user-images.githubusercontent.com/25087/236529178-465e9b98-3401-47dd-8691-ea475d96c3ad.png" height="200" /> |
| 6 |
<source media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/25087/236529273-6f8c841f-f11b-4ec8-b01d-7e3d9b17c85f.png" height="200" /> |
| 7 |
<img src="https://user-images.githubusercontent.com/25087/236529178-465e9b98-3401-47dd-8691-ea475d96c3ad.png" height="200" alt="A 3D rendering of an X"/> |
| 8 |
</picture> |
| 9 |
</p> |
| 10 |
|
| 11 |
This repository contains experimental packages with no promises of |
| 12 |
backwards compatibility. Once they mature here, they might be moved |
| 13 |
into other repositories. |
| 14 |
|
| 15 |
Currently the following packages are available: |
| 16 |
|
| 17 |
- [`ansi`](./ansi): ANSI escape sequence parser and definitions • [Docs](https://pkg.go.dev/github.com/charmbracelet/x/ansi) |
| 18 |
- [`cellbuf`](./cellbuf): Cell-based terminal display parser • [Docs](https://pkg.go.dev/github.com/charmbracelet/x/cellbuf) |
| 19 |
- [`conpty`](./conpty): Windows Console Pseudo-terminal library • [Docs](https://pkg.go.dev/github.com/charmbracelet/x/conpty) |
| 20 |
- [`editor`](./editor): open files in text editors • [Docs](https://pkg.go.dev/github.com/charmbracelet/x/editor) |
| 21 |
- [`errors`](./errors): `errors.Join` in older Go versions • [Docs](https://pkg.go.dev/github.com/charmbracelet/x/errors) |
| 22 |
- [`golden`](./exp/golden): verify golden file equality • [Docs](https://pkg.go.dev/github.com/charmbracelet/x/exp/golden) |
| 23 |
- [`higherorder`](./exp/higherorder): generic higher order functions • [Docs](https://pkg.go.dev/github.com/charmbracelet/x/exp/higherorder) |
| 24 |
- [`input`](./input): terminal event input handler and driver • [Docs](https://pkg.go.dev/github.com/charmbracelet/x/input) |
| 25 |
- [`json`](./json): JSON parsing using generics • [Docs](https://pkg.go.dev/github.com/charmbracelet/x/json) |
| 26 |
- [`maps`](./exp/maps): generic maps utilities |
| 27 |
- [`open`](./exp/open): open a file/URL using `open`, `xdg-open`, etc • [Docs](https://pkg.go.dev/github.com/charmbracelet/x/exp/open) |
| 28 |
- [`ordered`](./exp/ordered): generic `min`, `max`, and `clamp` functions for ordered types • [Docs](https://pkg.go.dev/github.com/charmbracelet/x/exp/ordered) |
| 29 |
- [`slice`](./exp/slice): generic slice utilities • [Docs](https://pkg.go.dev/github.com/charmbracelet/x/exp/slice) |
| 30 |
- [`sshkey`](./sshkey): open and parse SSH keys, asks for passphrases when needed • [Docs](https://pkg.go.dev/github.com/charmbracelet/x/sshkey) |
| 31 |
- [`strings`](./exp/strings): utilities for working with strings • [Docs](https://pkg.go.dev/github.com/charmbracelet/x/exp/strings) |
| 32 |
- [`teatest`](./exp/teatest): a library for testing [Bubble Tea](https://github.com/charmbracelet/bubbletea) programs • [Docs](https://pkg.go.dev/github.com/charmbracelet/x/exp/teatest) |
| 33 |
- [`term`](./term): terminal utilities and helpers • [Docs](https://pkg.go.dev/github.com/charmbracelet/x/term) |
| 34 |
- [`termios`](./termios): Termios unified API and library • [Docs](https://pkg.go.dev/github.com/charmbracelet/x/termios) |
| 35 |
- [`wcwidth`](./wcwidth): Wide character width calculation • [Docs](https://pkg.go.dev/github.com/charmbracelet/x/wcwidth) |
| 36 |
- [`windows`](./windows): Windows API used at Charmbracelet • [Docs](https://pkg.go.dev/github.com/charmbracelet/x/windows) |
| 37 |
- [`xpty`](./xpty): cross-platform PTY interface • [Docs](https://pkg.go.dev/github.com/charmbracelet/x/xpty) |
| 38 |
|
| 39 |
[docbadge]: https://godoc.org/github.com/golang/gddo?status.svg |
| 40 |
|
| 41 |
## Feedback |
| 42 |
|
| 43 |
We'd love to hear your thoughts on this project. Feel free to drop us a note! |
| 44 |
|
| 45 |
- [Twitter](https://twitter.com/charmcli) |
| 46 |
- [The Fediverse](https://mastodon.social/@charmcli) |
| 47 |
- [Discord](https://charm.sh/chat) |
| 48 |
|
| 49 |
## License |
| 50 |
|
| 51 |
[MIT](https://github.com/charmbracelet/x/raw/main/LICENSE) |
| 52 |
|
| 53 |
--- |
| 54 |
|
| 55 |
Part of [Charm](https://charm.sh). |
| 56 |
|
| 57 |
<a href="https://charm.sh/"><img alt="The Charm logo" src="https://stuff.charm.sh/charm-badge.jpg" width="400"></a> |
| 58 |
|
| 59 |
Charm热爱开源 • Charm loves open source • نحنُ نحب المصادر المفتوحة |