brignano 0.0.40 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/card.js DELETED
@@ -1,118 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- 'use strict'
4
-
5
- const boxen = require("boxen");
6
- const chalk = require("chalk");
7
- const inquirer = require("inquirer");
8
- const clear = require("clear");
9
- const open = require("open");
10
- const fs = require('fs');
11
- const request = require('request');
12
- const path = require('path');
13
- const ora = require('ora');
14
- const cliSpinners = require('cli-spinners');
15
- clear();
16
-
17
- const prompt = inquirer.createPromptModule();
18
-
19
- const questions = [
20
- {
21
- type: "list",
22
- name: "action",
23
- message: "What you want to do?",
24
- choices: [
25
- {
26
- name: `Send me an ${chalk.green.bold("Email")}.`,
27
- value: () => {
28
- open("mailto:hi@brignano.io");
29
- console.log("\nDone, see you soon at inbox.\n");
30
- }
31
- },
32
- {
33
- name: `Download my ${chalk.magentaBright.bold("Resume")}.`,
34
- value: () => {
35
- // cliSpinners.dots;
36
- const loader = ora({
37
- text: ' Downloading Resume',
38
- spinner: cliSpinners.material,
39
- }).start();
40
- let pipe = request('https://brignano-io.vercel.app/api/resume').pipe(fs.createWriteStream('./anthony-brignano.html'));
41
- pipe.on("finish", function () {
42
- let downloadPath = path.join(process.cwd(), 'anthony-brignano.html')
43
- console.log(`\nResume Downloaded at ${downloadPath} \n`);
44
- open(downloadPath)
45
- loader.stop();
46
- });
47
- }
48
- },
49
- {
50
- name: "Just quit.",
51
- value: () => {
52
- console.log("Have a good day!\n");
53
- }
54
- }
55
- ]
56
- }
57
- ];
58
-
59
- const data = {
60
- name: chalk.bold.green(" Anthony Brignano"),
61
- handle: chalk.white("@brignano"),
62
- work: `${chalk.white("Sr. Staff Software Engineer at")} ${chalk
63
- .hex("#3A5A78")
64
- .bold("The Hartford")}`,
65
- github: chalk.gray("https://github.com/") + chalk.green("brignano"),
66
- linkedin: chalk.gray("https://linkedin.com/in/") + chalk.blue("brignano"),
67
- twitter: chalk.gray("https://twitter.com/") + chalk.cyan("brignano_"),
68
- web: chalk.cyan("https://brignano.io"),
69
- npx: chalk.red("npx") + " " + chalk.white("brignano"),
70
-
71
- labelWork: chalk.white.bold(" Work:"),
72
- labelGitHub: chalk.white.bold(" GitHub:"),
73
- labelLinkedIn: chalk.white.bold(" LinkedIn:"),
74
- labelTwitter: chalk.white.bold(" Twitter:"),
75
- labelWeb: chalk.white.bold(" Web:"),
76
- labelCard: chalk.white.bold(" Card:")
77
- };
78
-
79
- const me = boxen(
80
- [
81
- `${data.name}`,
82
- ``,
83
- `${data.labelWork} ${data.work}`,
84
- ``,
85
- `${data.labelGitHub} ${data.github}`,
86
- `${data.labelLinkedIn} ${data.linkedin}`,
87
- `${data.labelTwitter} ${data.twitter}`,
88
- `${data.labelWeb} ${data.web}`,
89
- ``,
90
- `${data.labelCard} ${data.npx}`,
91
- ``,
92
- `${chalk.italic("My inbox is always open. Whether you have a")}`,
93
- `${chalk.italic(
94
- "question or just want to say hi, I will try"
95
- )}`,
96
- `${chalk.italic(
97
- "my best to get back to you! :)"
98
- )}`
99
- ].join("\n"),
100
- {
101
- margin: 1,
102
- float: 'center',
103
- padding: 1,
104
- borderStyle: "single",
105
- borderColor: "green"
106
- }
107
- );
108
-
109
- console.log(me);
110
- const tip = [
111
- `Tip: Try ${chalk.cyanBright.bold(
112
- "cmd/ctrl + click"
113
- )} on the links above`,
114
- '',
115
- ].join("\n");
116
- console.log(tip);
117
-
118
- prompt(questions).then(answer => answer.action());