UNPKG

figlet

Version:

Creates ASCII Art from text. A full implementation of the FIGfont spec.

16 lines (12 loc) 286 B
#!/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); });