• This repository has been archived on 10/Oct/2022
  • Stars
    star
    53
  • Rank 533,564 (Top 11 %)
  • Language
    Erlang
  • License
    BSD 3-Clause "New...
  • Created over 7 years ago
  • Updated about 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Small library for colored (ANSI) output in Erlang/Elixir/LFE. It's can be useful when you need to create user-friendly command-line applications.

Nebula

test BSD

Nebula is a small library for colored (ANSI) output in Erlang/Elixir. It's can be useful when you need to create user-friendly command-line application.

Installation

Just add {nebula, "0.1.1"} to your rebar.config file and run following command:

➜ ~ make compile

or if you want to use this package with Elixir add {:nebula, "~> 0.1.1"} to your mix.exs and run following command:

➜ ~ mix deps.get

Usage

Using with Erlang:

update_something() ->
  %% ...
  %% ...
  nebula:print(green, "Something has been updated successfully!").

Using with LFE (Lisp Flavoured Erlang):

(defun update_something ()
    (nebula:print :GREEN "Something has been updated successfully!"))

Using with Elixir:

def update_something do
  # ...
  # ...
  :nebula.print(:green, "Something has been updated successfully!")
end

Available functions and colors

First argument is color name (atom), second - your message.

  • print/2: black, red, green, orange, blue, purple, yellow, cyan, grey.
  • background/2: black, red, green, yellow, blue, purple, cyan.

License

BSD 3-Clause License

More Repositories

1

awesomo

Cool open source projects. Choose your project and get involved in Open Source development now.
Go
9,188
star
2

mimesis

Mimesis is a powerful Python library that empowers developers to generate massive amounts of synthetic data efficiently.
Python
4,243
star
3

expynent

A library that provides regular expression patterns. If you hate to write regular expressions, then expynent can help you.
Python
386
star
4

secrets.clj

A library designed to generate cryptographically strong random numbers suitable for managing data such as passwords, account authentication, security tokens, and related secrets.
Clojure
87
star
5

mimesis-factory

Mimesis integration with factory_boy
Python
52
star
6

macbook

A script for quickly setting up a development environment on the new Macbook.
Shell
47
star
7

rmanns

Remove annotations from the e-books downloaded from the pirate sites, such as www.it-ebooks.info, www.allitebooks.com and another ones.
Python
33
star
8

rkn-sosatb

Remove age verification system form PornHub for Russian users.
JavaScript
20
star
9

log4p

Log4j alternative for Python
Python
13
star
10

django-template

[WIP] A scaffold for all my Django projects.
Python
6
star
11

lk-geimfari.github.io

✍️ My personal blog, where I write my thoughts about software development etc.
CSS
5
star
12

spectet

Host availability monitoring utility that supports various protocols.
Go
3
star
13

mimety

Mimety is a tiny library for Elixir that help you handle mime types.
Elixir
2
star
14

tensorflow-censorship-categorization

2
star
15

parole

Simple and fast password manager based on gen_server and general balanced trees.
Erlang
1
star
16

hypeapp

Overhead shit that you don't need in your shitty project, but you have to use for hype.
1
star
17

gateway.tips

Gateway for crypto tip and donations.
Python
1
star
18

NFTISTA

NFT art generator which makes it easy to generate a combinations of unique images.
Python
1
star
19

healthy

Service for showing statuses of your services.
1
star
20

Factorial

Factorial brings the 2FA to the convenience of your CLI.
1
star
21

snippets

1
star
22

databank.clj

Simple in-memory database for Clojure.
Clojure
1
star