Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/MAHcodes/wink
(>ᴗ•) Wink your text! Make it gleam with a boxy upgrade for a polished look that shines ✧
https://github.com/MAHcodes/wink
Last synced: 27 days ago
JSON representation
(>ᴗ•) Wink your text! Make it gleam with a boxy upgrade for a polished look that shines ✧
- Host: GitHub
- URL: https://github.com/MAHcodes/wink
- Owner: MAHcodes
- License: gpl-3.0
- Created: 2024-04-09T01:52:02.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2024-04-13T16:08:51.000Z (8 months ago)
- Last Synced: 2024-04-25T06:35:29.167Z (8 months ago)
- Language: Gleam
- Homepage:
- Size: 26.4 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-gleam - wink - [📚](https://hexdocs.pm/wink/) - A simple Gleam box drawing library (Packages / Text)
README
# wink
[![Package Version](https://img.shields.io/hexpm/v/wink)](https://hex.pm/packages/wink)
[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/wink/)A simple Gleam box drawing library
```sh
gleam add wink
``````gleam
import gleam/io
import winkpub fn main() {
// draws a box with the default configuration
"(>ᴗ•)"
|> wink.draw
|> io.println
}
```will output:
```
╭───────╮
│ │
│ (>ᴗ•) │
│ │
╰───────╯```
```gleam
import gleam/io
import wink.{Border, Config, Custom}pub fn main() {
// or you can initialize a custom-styled box with specific config
let box =
wink.init(
Config(
..wink.default_config,
style: Custom(Border(
top_right: "◝",
top_left: "◜",
bottom_right: "◞",
bottom_left: "◟",
horizontal: "―",
vertical: "⸾",
)),
),
)"(>ᴗ•)"
|> box.draw
|> io.println
}
```Further documentation can be found at .
## Development
```sh
gleam run # Run the project
gleam test # Run the tests
gleam shell # Run an Erlang shell
```