splashcii

1.1.1 • Public • Published

🎨 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")

Readme

Keywords

none

Package Sidebar

Install

npm i splashcii

Weekly Downloads

0

Version

1.1.1

License

ISC

Unpacked Size

353 kB

Total Files

12

Last publish

Collaborators

  • flemaitr