Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/strawmelonjuice/gleamy_lights
gleamy_lights - Colored console output for Gleam.
https://github.com/strawmelonjuice/gleamy_lights
browser colors colours console cross-platform erlang gleam gleam-lang javascript
Last synced: 3 months ago
JSON representation
gleamy_lights - Colored console output for Gleam.
- Host: GitHub
- URL: https://github.com/strawmelonjuice/gleamy_lights
- Owner: strawmelonjuice
- License: apache-2.0
- Created: 2024-09-21T13:54:52.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2024-10-09T20:50:00.000Z (4 months ago)
- Last Synced: 2024-10-10T22:41:08.668Z (4 months ago)
- Topics: browser, colors, colours, console, cross-platform, erlang, gleam, gleam-lang, javascript
- Language: Gleam
- Homepage: https://hex.pm/packages/gleamy_lights
- Size: 31.3 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.md
- License: LICENSE
Awesome Lists containing this project
README
# gleamy_lights
[![Package Version](https://img.shields.io/hexpm/v/gleamy_lights)](https://hex.pm/packages/gleamy_lights)
[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/gleamy_lights/)Colored terminal output for Gleam.
```sh
gleam add gleamy_lights@2
``````gleam
import gleam/io
import gleamy_lights
import gleamy_lights/premixed.{bg_green, text_orange}
import gleamy_lights/premixed/gleam_colourspub fn main() {
io.println(
text_orange("Hello, ")
<> gleamy_lights.by_hexcolour_bg("world", "#aa88ff")
<> bg_green("!"),
)
io.println(
"This is a "
<> gleam_colours.bg_underwater_blue(gleam_colours.text_faff_pink(
"gleamy",
))
<> " world.",
)
}
```Further documentation can be found at .
## Development
```sh
gleam run # Run the project
gleam test # Run the tests
```