Skip to content

vtex/vtexsay

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vtexsay

Tell VTEX what to say

Like cowsay, but less cow.

Install

$ npm install --save vtexsay

Usage

var vtexsay = require('vtexsay');

console.log(vtexsay('Hello, and welcome to my fantastic generator full of whimsy and bubble gum!'));

/*
        ,-²═²,        
     r"        "%      .--------------------------.
   r  ╥╥╥    ╦╦╦  ¼    | Hello, and welcome to my |
  j   ²▒▒▒  ▒▒▒`   N   | fantastic generator full |
  ╛    ²▒D ▒▒▒`    j   |   of whimsy and bubble   |
  j     ² ▒▒▒²     ê   |           gum!           |
   ¼     ²▒▒      a    '--------------------------'
    "w    `     =^     
       "²─¬⌂─²²        
 */

You can style your text with chalk before passing it to vtexsay.

CLI

$ npm install --global vtexsay
$ vtexsay --help

  Usage
    vtexsay <string>
    vtexsay <string> --maxLength 8
    echo <string> | vtexsay

  Example
    vtexsay 'Sindre is a horse'

        ,-²═²,        
     r"        "%      
   r  ╥╥╥    ╦╦╦  ¼    
  j   ²▒▒▒  ▒▒▒`   N   .--------------------------.
  ╛    ²▒D ▒▒▒`    j   |     Sindre is a horse    |
  j     ² ▒▒▒²     ê   '--------------------------'
   ¼     ²▒▒      a    
    "w    `     =^     
       "²─¬⌂─²²        

License

BSD license Copyright (c) Google

Packages

No packages published

Languages

  • JavaScript 100.0%