This repository has been archived on 2026-03-28. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files

16 lines
286 B
JavaScript

#!/usr/bin/env node
const figlet = require("../lib/node-figlet");
const [text] = process.argv.slice(2);
if (!text) {
throw new Error("You need to provide some text.");
}
figlet(text, function (err, formattedText) {
if (err) {
throw err;
}
console.log(formattedText);
});