You must have heard of cowsay 🐮. But why remain restricted only to cow?
Here we have collections of famous cartoon and characters that repeats the phrase ready to be used in terminal and your javascript projects.
This is an ASCII characters collection that you can use on your terminal.
Make sure you have npm installed in your system
npm --version
Install the package
npm install -g phraze
Check the installation
phraze --version
Finally use it anywhere
- Default cartoon is pup
phraze "Hello Guys"
phraze "Hello Guys" homer
echo "Hello Guys" | phraze
For full command usage see and to view all available characters -
phraze --help
First install in your local project
npm install phraze --save
Import the package
import { phraze } from "phraze";
Use the function
phraze("Your message here!", "pup");
Alternatively, you may return a string instead of logging, passing a truthy 3rd argument:
phraze("Your message here!", "pup", true);
Function :-
phraze(<type your message here>,<character name here>,<returnMode optional boolean>)
With nodejs >=13 you can consume this module using dynamic import along returnMode
const phraze = async (string, character) => {
return await import("phraze")
.then((module) => module.phraze(string, (character = "pup"), true))
.catch((error) => error);
};
Want to publish your own ASCII art here for public usage?
Look in Contributors.md
for full detail. Plus you can add your name signature on your art and take credit for it.