UNPKG

iustoet

Version:

Ansi codes, figlet fonts, and ascii art. 100% JS

43 lines (40 loc) 1.33 kB
#!/usr/bin/env node var art = require('../../art'); var Color = require('ascii-art-ansi/color'); Color.is256 = true; Color.useDistance('euclideanDistance'); art.font('I N T E R N E T', 'Doom').lines(0, 6, function(err, logo){ art.font('Serious Business', 'rusted', function(err, subtext){ art.table({ verticalBar : ' ', horizontalBar : ' ', intersection : ' ', data:[ {name: art.style('current users', 'red', true), value: '203'}, {name: 'operator', value: 'vince.vega'}, {name: 'dial-in', value: '(917)555-4202'}, ] }).lines(2, function(err, table){ art.image({ filepath :'Images/serious-business.jpg', alphabet : 'blocks' }).lines(2, 50).overlay(logo, { x: 8, y: 0, style: 'blue', }).overlay(table, { x: -1, y: -4, transparent : true, style: 'green', }).overlay(subtext, { x: 12, y: -1, transparent : true, style: 'yellow', }, function(err, final){ console.log(final); }); }); }); });