1.1.7 • Published 8 years ago

ink-flower v1.1.7

Weekly downloads
2
License
MIT
Repository
github
Last release
8 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

8 years ago

1.1.6

8 years ago

1.1.5

8 years ago

1.1.4

8 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.0

8 years ago