Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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 - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

17

index.js

@@ -21,8 +21,17 @@ 'use strict';

module.exports = function (message, options) {
message = message || 'Welcome to Yeoman, ladies and gentlemen!';
message = (message || 'Welcome to Yeoman, ladies and gentlemen!').trim();
options = options || {};
var maxLength = options.maxLength || 24;
var maxLength = 24;
var frame;
var frame = {
if (options.maxLength) {
maxLength = message.toLowerCase().split(' ').sort()[0].length;
if (maxLength < options.maxLength) {
maxLength = options.maxLength;
}
}
frame = {
top: '.' + pad('', maxLength + 2, '-') + '.',

@@ -33,3 +42,3 @@ side: '|',

return wrap(message.trim(), { width: maxLength })
return wrap(message, { width: maxLength })
.split(/\n/)

@@ -36,0 +45,0 @@ .reduce(function (greeting, str, index, array) {

{
"name": "yosay",
"version": "0.2.0",
"version": "0.2.1",
"description": "Tell Yeoman what to say",

@@ -5,0 +5,0 @@ "license": "BSD",

@@ -5,2 +5,4 @@ # yosay [![Build Status](https://travis-ci.org/yeoman/yosay.svg?branch=master)](https://travis-ci.org/yeoman/yosay)

Like [cowsay](http://en.wikipedia.org/wiki/Cowsay), but less cow.
![](screenshot.png)

@@ -21,3 +23,3 @@

yosay('Hello, and welcome to my fantastic generator full of whimsy and bubble gum!');
console.log(yosay('Hello, and welcome to my fantastic generator full of whimsy and bubble gum!'));

@@ -24,0 +26,0 @@ /*

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