phraze

2.1.0 • Public • Published

ASCII Cartoon Character for terminal 👨‍💻

GitHub contributors Stars npm PR's Welcome


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.

About The Project

This is an ASCII characters collection that you can use on your terminal.

screenshot screenshot screenshot screenshot

Usage

Install globally in 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

Import in your javascript project

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>)

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.

Built With

node

ASCII ART Credits

Supported By

Our Precious Contributors ❤️

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i phraze

    Weekly Downloads

    0

    Version

    2.1.0

    License

    ISC

    Unpacked Size

    11.8 kB

    Total Files

    17

    Last publish

    Collaborators

    • serjeel_ranjan