rearrage_stuff
This commit is contained in:
50
node_modules/figlet/examples/node/app.js
generated
vendored
Normal file
50
node_modules/figlet/examples/node/app.js
generated
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
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');
|
||||
|
||||
(async () => {
|
||||
const helloWorld = await figlet("Async World!", "Standard");
|
||||
console.log(helloWorld);
|
||||
|
||||
const example2 = await figlet.text("Async Example", "Graffiti");
|
||||
console.log(example2);
|
||||
|
||||
const example3 = await figlet.text("Bonus Example.", {
|
||||
font: "Standard",
|
||||
horizontalLayout: "full",
|
||||
verticalLayout: "full",
|
||||
});
|
||||
|
||||
console.log(example3);
|
||||
|
||||
figlet("Callback World!", "Standard", function (err, data) {
|
||||
if (err) {
|
||||
console.log("Something went wrong...");
|
||||
console.dir(err);
|
||||
return;
|
||||
}
|
||||
|
||||
console.log(data);
|
||||
|
||||
figlet.text("Callback Example", "Graffiti", function (err, data) {
|
||||
if (err) {
|
||||
console.log("Something went wrong...");
|
||||
console.dir(err);
|
||||
return;
|
||||
}
|
||||
|
||||
console.log(data);
|
||||
});
|
||||
});
|
||||
})();
|
||||
24
node_modules/figlet/examples/node/appSync.js
generated
vendored
Normal file
24
node_modules/figlet/examples/node/appSync.js
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
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');
|
||||
|
||||
console.log(figlet.textSync("Hello World!", "Standard"));
|
||||
console.log(figlet.textSync("Again, Hello World!", "Graffiti"));
|
||||
console.log(
|
||||
figlet.textSync("Last time...", {
|
||||
font: "Standard",
|
||||
horizontalLayout: "full",
|
||||
verticalLayout: "full",
|
||||
})
|
||||
);
|
||||
Reference in New Issue
Block a user