Socket
Socket
Sign inDemoInstall

ink-flower

Package Overview
Dependencies
0
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ink-flower

flower characters component for [ink](https://github.com/vadimdemedes/ink)


Version published
Maintainers
1
Created

Readme

Source

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

FAQs

Last updated on 24 Jul 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc