Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

yosay

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

  • 1.2.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
176K
decreased by-45.88%
Maintainers
7
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 06 Oct 2016

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