charsay
TypeScript icon, indicating that this package has built-in type declarations

0.2.10 • Public • Published

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.2.102latest

Version History

VersionDownloads (Last 7 Days)Published
0.2.102
0.2.90
0.2.80
0.2.70
0.2.60
0.2.50
0.2.40
0.2.30
0.2.20
0.2.10
0.2.00
0.1.90
0.1.80
0.1.70
0.1.60
0.1.50
0.1.40
0.1.30
0.1.20
0.1.10
0.1.00

Package Sidebar

Install

npm i charsay

Weekly Downloads

2

Version

0.2.10

License

MIT

Unpacked Size

13 kB

Total Files

30

Last publish

Collaborators

  • vianch