1.1.1 • Published 3 years ago

splashcii v1.1.1

Weekly downloads
4
License
ISC
Repository
-
Last release
3 years ago

🎨 Splashcii

Splashcii is a simple command-line tool that queries and displays a random ascii art from Asciiur

Install

Use your favorite package manager to install splashcii

$ npm install -g splashcii
...

$ yarn global add splashcii
...

$ pnpm add -g splashcii
...

Usage

$ splashcii halloween
 .-.
(o o) boo!
| O \
 \   \
  `~~~'

Query results are cached, so they're only fetched once, the first time you search for a certain keyword.

Doom Emacs Banner

Example to use a random halloween ascii-art for your doom banner. Make sure splascii is on your path.

Doom Emacs

(defvar +fl/splashcii-query ""
  "The query to search on asciiur.com")

(defun +fl/splashcii-banner ()
  (mapc (lambda (line)
          (insert (propertize (+doom-dashboard--center +doom-dashboard--width line)
                              'face 'doom-dashboard-banner) " ")
          (insert "\n"))
        (split-string (with-output-to-string
                        (call-process "splashcii" nil standard-output nil +fl/splashcii-query))
                      "\n" t)))

(setq +doom-dashboard-ascii-banner-fn #'+fl/splashcii-banner)

(setq +fl/splashcii-query "christmas")
1.1.1

3 years ago

1.1.0

3 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago