https://github.com/mytrile/sparkel
ASCII sparklines in Elixir
https://github.com/mytrile/sparkel
ascii-sparklines elixir
Last synced: about 1 year ago
JSON representation
ASCII sparklines in Elixir
- Host: GitHub
- URL: https://github.com/mytrile/sparkel
- Owner: mytrile
- License: mit
- Created: 2016-12-12T19:46:21.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-12T19:47:00.000Z (over 9 years ago)
- Last Synced: 2025-03-14T01:05:02.313Z (over 1 year ago)
- Topics: ascii-sparklines, elixir
- Language: Elixir
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sparkel
Sparkel is a port of spark for Elixir and lets you create ASCII sparklines
## Installation
1. Add `sparkel` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[{:sparkel, "~> 0.1.0"}]
end
```
2. Ensure `sparkel` is started before your application:
```elixir
def application do
[applications: [:sparkel]]
end
```
## Usage
```elixir
Sparkel.sparkline [2, 5, 1, 9]
# "▁▄▁█"
```
## Author
Dimitar Kostov (@mytrile)
## Credits
Sparkr would not exist without Zach Holman's [spark](https://github.com/holman/spark) and René Föhring's [sparkr](https://github.com/rrrene/sparkr)
## License
Sparkr is released under the MIT License. See the LICENSE file for further
details.