Skip to content

Instantly share code, notes, and snippets.

@individual11
Last active January 1, 2016 21:39
Show Gist options
  • Select an option

  • Save individual11/8204762 to your computer and use it in GitHub Desktop.

Select an option

Save individual11/8204762 to your computer and use it in GitHub Desktop.
If you want to see what all the font options look like in figlet
/**********************
*
* run this in command line first
* $ npm install figlet
*
**********************/
var figlet = require('figlet');
figlet.fonts(function(err, fonts) {
if (err) {
console.log('Error occured looking at fonts');
console.dir(err);
return;
}
for(var i = 0; i < fonts.length; i++){
figlet.text(fonts[i], {
font: fonts[i],
horizontalLayout: 'default',
verticalLayout: 'default'
}, function(err, data) {
if (err) {
console.dir(err);
return;
}
console.log(data);
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment