ahmedelgabri 8.0.1 → 8.0.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.
- package/esm/card.js +4 -0
- package/esm/mod.js +2 -11
- package/package.json +2 -2
- package/script/card.js +6 -0
- package/script/mod.js +3 -13
- package/types/card.d.ts +3 -0
- package/types/card.d.ts.map +1 -0
- package/types/mod.d.ts +0 -9
- package/types/mod.d.ts.map +1 -1
package/esm/card.js
ADDED
package/esm/mod.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import "./_dnt.polyfills.js";
|
|
3
1
|
import "./_dnt.polyfills.js";
|
|
4
2
|
import * as dntShim from "./_dnt.shims.js";
|
|
5
3
|
import * as c from "./deps/jsr.io/@std/fmt/0.221.0/colors.js";
|
|
@@ -60,15 +58,8 @@ export function getCard() {
|
|
|
60
58
|
borderColor: dntShim.Deno.env.get("NO_COLOR") ? undefined : "blue",
|
|
61
59
|
});
|
|
62
60
|
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
* colors
|
|
66
|
-
*
|
|
67
|
-
* @returns {string}
|
|
68
|
-
*/
|
|
69
|
-
export function getPlainCard() {
|
|
70
|
-
return output;
|
|
71
|
-
}
|
|
61
|
+
// Needed for deno run ...
|
|
62
|
+
// card.ts is needed for npx ...
|
|
72
63
|
if ((import.meta.url === ("file:///" + process.argv[1].replace(/\\/g, "/")).replace(/\/{3,}/, "///"))) {
|
|
73
64
|
console.log(getCard());
|
|
74
65
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ahmedelgabri",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.2",
|
|
4
4
|
"description": "A personal card for Ahmed El Gabri (@ahmedelgabri)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"card",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
"bin": {
|
|
42
|
-
"ahmedelgabri": "./esm/
|
|
42
|
+
"ahmedelgabri": "./esm/card.js"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"boxen": "7.1.1",
|
package/script/card.js
ADDED
package/script/mod.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
1
|
"use strict";
|
|
3
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
3
|
if (k2 === undefined) k2 = k;
|
|
@@ -27,8 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
27
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
28
27
|
};
|
|
29
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
-
exports.
|
|
31
|
-
require("./_dnt.polyfills.js");
|
|
29
|
+
exports.getCard = void 0;
|
|
32
30
|
require("./_dnt.polyfills.js");
|
|
33
31
|
const dntShim = __importStar(require("./_dnt.shims.js"));
|
|
34
32
|
const c = __importStar(require("./deps/jsr.io/@std/fmt/0.221.0/colors.js"));
|
|
@@ -90,16 +88,8 @@ function getCard() {
|
|
|
90
88
|
});
|
|
91
89
|
}
|
|
92
90
|
exports.getCard = getCard;
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
* colors
|
|
96
|
-
*
|
|
97
|
-
* @returns {string}
|
|
98
|
-
*/
|
|
99
|
-
function getPlainCard() {
|
|
100
|
-
return output;
|
|
101
|
-
}
|
|
102
|
-
exports.getPlainCard = getPlainCard;
|
|
91
|
+
// Needed for deno run ...
|
|
92
|
+
// card.ts is needed for npx ...
|
|
103
93
|
if ((require.main === module)) {
|
|
104
94
|
console.log(getCard());
|
|
105
95
|
}
|
package/types/card.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../src/card.ts"],"names":[],"mappings":";AACA,OAAO,qBAAqB,CAAC"}
|
package/types/mod.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import "./_dnt.polyfills.js";
|
|
3
1
|
import "./_dnt.polyfills.js";
|
|
4
2
|
/**
|
|
5
3
|
* Returns a boxed and colored personal card containing personal information
|
|
@@ -7,11 +5,4 @@ import "./_dnt.polyfills.js";
|
|
|
7
5
|
* @returns {string}
|
|
8
6
|
*/
|
|
9
7
|
export declare function getCard(): string;
|
|
10
|
-
/**
|
|
11
|
-
* Returns personal card containing personal information without ascii art or
|
|
12
|
-
* colors
|
|
13
|
-
*
|
|
14
|
-
* @returns {string}
|
|
15
|
-
*/
|
|
16
|
-
export declare function getPlainCard(): string;
|
|
17
8
|
//# sourceMappingURL=mod.d.ts.map
|
package/types/mod.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAC;AAqD7B;;;;GAIG;AACH,wBAAgB,OAAO,IAAI,MAAM,CAQhC"}
|