Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// cowsays.js
import * as cowsay from "cowsay"
const text = window.atob("SSBsaXZlIGluIGEgYnJvd3NlciBub3c=")
console.log(cowsay.say({ text }))
puppet.exit()
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></h1>
<h1>Node</h1>
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
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 "
})
);
}
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 })));
}
run ({ channel, message }, text) {
channel.send(`\`\`\`${cowsay.say({ text })}\`\`\``)
}
}
function say(text) {
return cowsay.say({ text: wrapAnsi(text, 80, { hard: true }) })
}
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);
}