README
ebanner
make ascii banners from the command-line
usage
ebanner [string]
or
echo <string> | ebanner
example
0 enw@hesse::~/proj/banner$ ebanner hi, wrld.
HH HH IIIIII W W RRRRR LL DDDD
HH HH II W W RR RR LL DD DD
HHHHHH II ,, W W W RRRRR LL DD DD
HH HH II ,, W W RR RR LL DD DD ..
HH HH IIIIII , w w RR RR LLLLLL DDDD ..
0 enw@hesse::~/proj/banner$
API
printableChars() - returns a list of the printable ASCII characters
banner(input) - returns banner as array of strings, one for each row
printBanner(input[, printfxn]) - uses console.log() or custom printfxn to print banner. watch out for wrapping!
installation for nodejs
- install -
npm install ebanner
- require -
require('ebanner')
- be crative
(using browserify)
- install ebanner -
npm install --save ebanner
---save
addsebanner
to your package.json - use in code - e.g. created a
browser.js
file that usesrequire('ebanner')
(see example in test) - browserify - e.g.
browserify browser.js -o bundle.js
- include
bundle.js
in your HTML
installation for command-line
git clone http://github.com/enw/ebanner
- ``cd ebanner && npm link```
- run ``ebanner``` (see usage)
use in emacs
- install command-line
- select text in emacs
- run
ebanner
through the shell-command-on-region (M-|) function
testing
run npm test