- NO TYPESCRIPT SUPPORT YET
- Only node / serverside commonjs
- no for web
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
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>)