Skip to content

Latest commit

 

History

History
97 lines (66 loc) · 2.14 KB

README.md

File metadata and controls

97 lines (66 loc) · 2.14 KB

CHARSAY - LOGGER PRINTER WITH CHARACTERS 👨‍💻

Usage

NOTES:

  • NO TYPESCRIPT SUPPORT YET
  • Only node / serverside commonjs
  • no for web

Install globally in your terminal

Make sure you have npm installed in your system

npm --version

Install the package

npm install -g charsay

Check the installation

charsay --version

Finally use it anywhere

  • Default cartoon is homer
# default character is homer
charsay "Hello Dog!"
# diferent character
# list of characters included $ charsay --help
charsay "Hello Dog!" macintosh
# change message margin left
charsay "Hello Dog!" macintosh 25
# combining with echo
echo "Hello dog!" | charsay 

For full command usage see and to view all available characters -

charsay --help

Import in your javascript project

First install in your local project

# npm
npm install charsay --save
# yarn
yarn add --dev charsay

Import the package

import { charsay } from 'charsay';

Use the function

// default message margin
charsay("Your message here!",'cat');
// new  message margin
charsay("Your message here!",'cat', 25);

Function :-

charsay(<type your message here>,<character name here | optional>,<message margin | optional>)

Character examples

Screen Shot 2022-03-07 at 7 07 35 PM

Screen Shot 2022-03-07 at 7 08 25 PM

Screen Shot 2022-03-07 at 7 06 50 PM

Screen Shot 2022-03-07 at 7 04 46 PM

Screen Shot 2022-03-11 at 8 14 23 PM

Screen Shot 2022-03-11 at 8 13 53 PM