1.1.7 • Published 7 years ago

ink-flower v1.1.7

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

ink-flower

flower characters component for ink

Install


$ npm install ink-flower
# or
$ yarn add ink-flower

Usage


const { h, render } = require('ink');
const Flower = require('ink-flower');

render(<Flower text="ABCDEFG" />);

Props

nametypedefaultdesc
textstring""required
colorstring"green""red", "green", "blue"... e.t.c. -> see also chalk
markstring"#"character of dot
spacernumber2margin around each characters
inversebooleanfalse

Supported characters

  • uppercase alphabets: A - Z
  • numbers: 0 - 9
  • others: !, ?, #, $, %, &, ", ', +, -, *, /, (, ), [, ], =, <, >, ^, |, ;, :, _, @, ., ,

Example

code:

<Flower text="ABC" mark="*" />

result:

  *   ****   ***
 * *  *   * *   *
 * *  ****  *    
***** *   * *    
*   * *   * *   *
*   * ****   ***

LICENSE

MIT © 2017 y-takey

1.1.7

7 years ago

1.1.6

7 years ago

1.1.5

7 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago