Socket
Socket
Sign inDemoInstall

yosay

Package Overview
Dependencies
Maintainers
10
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


Version published
Weekly downloads
341K
increased by3.07%
Maintainers
10
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

FAQs

Package last updated on 25 Mar 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc