2.1.0 • Published 4 years ago
phraze v2.1.0
About The Project
This is an ASCII characters collection that you can use on your terminal.
Usage
Install globally in your terminal
Make sure you have npm installed in your system
npm --versionInstall the package
npm install -g phrazeCheck the installation
phraze --versionFinally use it anywhere
- Default cartoon is pup
phraze "Hello Guys"
phraze "Hello Guys" homer
echo "Hello Guys" | phrazeFor full command usage see and to view all available characters -
phraze --helpImport in your javascript project
First install in your local project
npm install phraze --saveImport 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>)Use in require-based (CommonJS) project
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);
};Contributors
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.