techeverri 1.0.1 → 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.
Files changed (3) hide show
  1. package/bin/card +16 -17
  2. package/bin/cli.js +4 -1
  3. package/package.json +1 -1
package/bin/card CHANGED
@@ -1,17 +1,16 @@
1
- 
2
-  ┌─────────────────────────────────────────────────────┐
3
-  │ │
4
-  │ Tomas Echeverri / techeverri │
5
-  │ Made in Colombia. Living in Sweden. │
6
-  │ │
7
-  │ Work: Software Engineer │
8
-  │ Twitter: https://twitter.com/TomasEcheverri │
9
-  │ GitHub: https://github.com/techeverri │
10
-  │ npm: https://www.npmjs.com/~techeverri │
11
-  │ LinkedIn: https://www.linkedin.com/in/tomechval │
12
-  │ Website: https://techeverri.dev │
13
-  │ │
14
-  │ Card: npx techeverri │
15
-  │ │
16
-  └─────────────────────────────────────────────────────┘
17
- 
1
+
2
+ ┌─────────────────────────────────────────────────────┐
3
+ │ │
4
+ │ Tomas Echeverri / techeverri │
5
+ │ Made in Colombia. Living in Sweden. │
6
+ │ │
7
+ │ Work: Software Engineer │
8
+ │ Twitter: https://twitter.com/TomasEcheverri │
9
+ │ GitHub: https://github.com/techeverri │
10
+ │ npm: https://www.npmjs.com/~techeverri │
11
+ │ LinkedIn: https://www.linkedin.com/in/tomechval │
12
+ │ Website: https://techeverri.dev │
13
+ │ │
14
+ │ Card: npx techeverri │
15
+ │ │
16
+ └─────────────────────────────────────────────────────┘
package/bin/cli.js CHANGED
@@ -2,12 +2,15 @@
2
2
 
3
3
  import fs from "fs";
4
4
  import path from "path";
5
+ import url from "url";
5
6
 
6
7
  const options = {
7
8
  encoding: "utf8",
8
9
  flag: "r",
9
10
  };
10
11
 
11
- const card = fs.readFileSync(path.join(path.resolve(), "bin/card"), options);
12
+ const __dirname = path.dirname(url.fileURLToPath(import.meta.url));
13
+
14
+ const card = fs.readFileSync(path.join(__dirname, "card"), options);
12
15
 
13
16
  console.log(card);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "techeverri",
3
- "version": "1.0.1",
3
+ "version": "1.1.0",
4
4
  "description": "Personal card for Tomas Echeverri (@techeverri)",
5
5
  "keywords": [
6
6
  "business card",