flower characters component for ink
$ npm install ink-flower
# or
$ yarn add ink-flower
const { h, render } = require('ink');
const Flower = require('ink-flower');
render(<Flower text="ABCDEFG" />);
name | type | default | desc |
---|---|---|---|
text | string | "" | required |
color | string | "green" | "red", "green", "blue"... e.t.c. -> see also chalk |
mark | string | "#" | character of dot |
spacer | number | 2 | margin around each characters |
inverse | boolean | false |
- uppercase alphabets:
A
-Z
- numbers:
0
-9
- others:
!
,?
,#
,$
,%
,&
,"
,'
,+
,-
,*
,/
,(
,)
,[
,]
,=
,<
,>
,^
,|
,;
,:
,_
,@
,.
,,
code:
<Flower text="ABC" mark="*" />
result:
* **** ***
* * * * * *
* * **** *
***** * * *
* * * * * *
* * **** ***
MIT © 2017 y-takey