brianmmaina 1.1.2

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.
Files changed (2) hide show
  1. package/index.js +22 -0
  2. package/package.json +15 -0
package/index.js ADDED
@@ -0,0 +1,22 @@
1
+ #!/usr/bin/env node
2
+ 'use strict';
3
+ import boxen from 'boxen';
4
+ import chalk from 'chalk';
5
+
6
+ const intro = chalk .bold.green('Hi, I\'m Brian Maina! I like watching movies, coding and playing video games.');
7
+ const links = [
8
+ { name: chalk.hex("#fff").bgHex("#7B82AA")('Website:'), url: ''},
9
+ ];
10
+
11
+ const linklist = link => links.map(link => `${link.name} ${chalk.cyan(link.url)}`).join('\n');
12
+
13
+ const options = {
14
+ padding: 1,
15
+ margin: 1,
16
+ borderStyle: 'round',
17
+ borderColor: 'cyan'
18
+ };
19
+
20
+ const output = boxen(intro + '\n\n' + linklist(links), options);
21
+
22
+ console.log(output);
package/package.json ADDED
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "brianmmaina",
3
+ "version": "1.1.2",
4
+ "description": "My terminal business card",
5
+ "main": "index.js",
6
+ "type": "module",
7
+ "bin": "./index.js",
8
+ "scripts": {
9
+ "setup": "npm install",
10
+ "start": "node index.js"
11
+ },
12
+ "keywords": [],
13
+ "author": "",
14
+ "license": "ISC"
15
+ }