1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
| /*
| Example
| */
|
| var figlet = require('../../lib/node-figlet.js');
|
| /*
| Once this has been run:
|
| npm install figlet
|
| Use the below line instead of the above line
| */
| // var figlet = require('figlet');
|
| figlet('Hello World!', 'Standard', function(err, data) {
| if (err) {
| console.log('Something went wrong...');
| console.dir(err);
| return;
| }
|
| console.log(data);
|
| figlet.text('Again, Hello World!', 'Graffiti', function(err, data) {
| if (err) {
| console.log('Something went wrong...');
| console.dir(err);
| return;
| }
|
| console.log(data);
|
| figlet.text('Last time...', {
| font: 'Standard',
| horizontalLayout: 'full',
| verticalLayout: 'full'
| }, function(err, data) {
| if (err) {
| console.log('Something went wrong...');
| console.dir(err);
| return;
| }
| console.log(data);
| });
|
| });
|
| });
|
|