yechancho 1.0.0 → 1.0.1

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 +27 -1
  2. package/package.json +6 -2
package/index.js CHANGED
@@ -1,3 +1,29 @@
1
1
  #!/usr/bin/env node
2
2
  'use strict'
3
- console.log("yoo its yechan")
3
+
4
+ import boxen from 'boxen'
5
+ import chalk from 'chalk'
6
+
7
+ const intro = chalk.bold.blue("hi, i'm yechan! i like to hang out with my friends.\n")
8
+
9
+ const links = [
10
+ {
11
+ name: chalk.hex("#fff").bgHex("#FFB7C5")(' linkedin: '),
12
+ url: 'https://www.linkedin.com/in/yechancho5'
13
+ }
14
+ ]
15
+
16
+ const linkList = links
17
+ .map(link => `${link.name} ${chalk.cyan(link.url)}`)
18
+ .join('\n')
19
+
20
+ const output = intro + linkList
21
+
22
+ const box = boxen(output, {
23
+ padding: 1,
24
+ margin: 1,
25
+ borderStyle: 'round',
26
+ borderColor: 'blue'
27
+ })
28
+
29
+ console.log(box)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yechancho",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "yechancho's terminal card",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -11,5 +11,9 @@
11
11
  },
12
12
  "keywords": [],
13
13
  "author": "",
14
- "license": "ISC"
14
+ "license": "ISC",
15
+ "dependencies": {
16
+ "boxen": "^8.0.1",
17
+ "chalk": "^5.6.2"
18
+ }
15
19
  }