grunt-font
Version:
Output in a nice font to the console
29 lines (24 loc) • 1.52 kB
JavaScript
/***************************************************************************************************************************************************************
*
* cfonts
*
* Sexy fonts for the console. (CLI output)
*
* @license https://github.com/dominikwilkowski/grunt-font/blob/master/LICENSE GNU GPLv2
* @author Dominik Wilkowski hi@dominik-wilkowski.com
* @repository https://github.com/dominikwilkowski/grunt-font
*
**************************************************************************************************************************************************************/
'use strict';
//--------------------------------------------------------------------------------------------------------------------------------------------------------------
// Dependencies
//--------------------------------------------------------------------------------------------------------------------------------------------------------------
const CFonts = require('cfonts');
//--------------------------------------------------------------------------------------------------------------------------------------------------------------
// Grunt plugin
//--------------------------------------------------------------------------------------------------------------------------------------------------------------
module.exports = exports = function( grunt ) {
grunt.registerMultiTask( 'font', 'Output in a nice font to the console', function() {
CFonts.say( this.data.text, this.options() );
});
};