How to use cowsay - 10 common examples

To help you get started, we’ve selected a few cowsay examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github andywer / puppet-run / sample / basic / cowsay.js View on Github external
// cowsays.js
import * as cowsay from "cowsay"

const text = window.atob("SSBsaXZlIGluIGEgYnJvd3NlciBub3c=")
console.log(cowsay.say({ text }))

puppet.exit()
github node-on-mobile / node-on-android / app / src / main / assets / node / index.js View on Github external
var http = require('http')
var cowsay = require("cowsay")
var android = require('node-on-android') // core

console.log(cowsay.say({
    text : "I'm a moooodule",
    e : "oO",
    T : "U "
}))

console.log("hello world")
console.log('argv', process.argv)

var server = http.createServer(function (req, res) {
    res.setHeader('Content-Type', 'text/html')
    res.end(`
        
            
                <h1>Hello</h1>
                <h1>From&gt;</h1>
                <h1>Node</h1>
github notwaldorf / tiny-care-terminal / ansiart.js View on Github external
function getAnsiArt(art, textToSay) {
  
  if (art && (art.toUpperCase() === 'RANDOM')) {
    // show a random art
    var rand = Math.random() * 100;
    if (rand >= 50) { // 50%
      return cowsay.say({
        r: true,
        text: textToSay
      });
    } else if (rand >= 25) { // 25%
      return ansiArt.get({
        speechText: textToSay
      });
    } else { // 25%
      return getCustomArt(art, textToSay) || ansiArt.get({
        speechText: textToSay
      });
    }
  } 
  
  else if (/.ansi$/.test(art)) {
    // if SAY ends with ".ansi" use the 'ansi-art' library
github IonicaBizau / tilda / examples / index.js View on Github external
]).on("list", action => {
    cowsay.list((err, list) => {
        if (err) { return this.exit(err); }
        let str = list.join(action.options.list.is_provided ? "\n" : ", ")
        console.log(str);
    });
}).main(action => {
    console.log(cowsay.say({
github cloudrig / CloudRIG / cli / index.js View on Github external
function showIntro() {
	console.log(
		figlet.textSync("cloudRIG", {
			font: "Standard",
			horizontalLayout: "default",
			verticalLayout: "default"
		})
	);

	console.log(
		cowsay.say({
			text:
				"This is alpha software - please use an isolated AWS account.\nPlease check your AWS console to ensure start/stop etc has worked.",
			e: "oO",
			T: "U "
		})
	);
}
github mscoutermarsh / cowsays-action / index.js View on Github external
async function run() {
  const ctx = new chalk.Instance({level: 2});
  const text = core.getInput('text');
  let color = colors[core.getInput('color')];

  if (color === undefined) {
    color = colors["white"]
  }

  console.log(ctx.ansi256(color)(cowsay.say({ text : text })));
}
github djadmin / passw0rd / cli.js View on Github external
const showResult = res => {
	const messages = {
		pwned: `${logSymbols.error} Pwned ${chalk.yellow(res.count)} times!`,
		safe: `${logSymbols.success} Yay! No records found!`
	};
	console.log();
	if (res.pwned) {
		console.log(cowsay.think({text: messages.pwned, e: 'oO'}));
		showWarning();
	} else {
		console.log(cowsay.say({text: messages.safe, f: 'tux'}));
	}
	return res;
};
github SwitchbladeBot / switchblade / src / commands / misc / cowsay.js View on Github external
run ({ channel, message }, text) {
    channel.send(`\`\`\`${cowsay.say({ text })}\`\`\``)
  }
}
github ThaiProgrammer / tech-events-calendar / scripts / post-to-buffer.js View on Github external
function say(text) {
  return cowsay.say({ text: wrapAnsi(text, 80, { hard: true }) })
}
github xseano / xQube / server / KekCube.js View on Github external
xQube.prototype.start = function() {
    Logger.white(cowsay.say({
        text : "xQube",
        e : "oO",
        T : "U "
    }));

    Logger.prompt(this.handleCommand.bind(this));
    Logger.info("xQube server deployed and running!".cyan);
}

cowsay

cowsay is a configurable talking cow

MIT
Latest version published 10 months ago

Package Health Score

64 / 100
Full package analysis