You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

yosay

Package Overview
Dependencies
Maintainers
4
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yosay

Tell Yeoman what to say

0.2.0
Source
npmnpm
Version published
Weekly downloads
442K
-3.21%
Maintainers
4
Weekly downloads
 
Created

What is yosay?

The yosay npm package is a fun utility that allows you to display messages in a speech bubble format, similar to the classic 'cowsay' but with a character resembling Yeoman. It's often used to add a bit of humor or personality to command-line interfaces.

What are yosay's main functionalities?

Basic Message Display

This feature allows you to display a basic message in a speech bubble format. The code sample shows how to require the yosay package and use it to print 'Hello, world!' in a speech bubble.

const yosay = require('yosay');
console.log(yosay('Hello, world!'));

Multiline Message Display

This feature allows you to display multiline messages. The code sample demonstrates how to print a message that spans multiple lines in a speech bubble.

const yosay = require('yosay');
console.log(yosay('Hello, world!
This is a multiline message.'));

Customizing the Character

This feature allows you to customize the speech bubble, such as setting a maximum length for the message. The code sample shows how to limit the message length to 20 characters.

const yosay = require('yosay');
console.log(yosay('Hello, world!', { maxLength: 20 }));

Other packages similar to yosay

Keywords

cli

FAQs

Package last updated on 10 May 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts