ababil 1.2.0 → 2.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.
- package/dist/index.js +3 -6
- package/package.json +1 -1
- package/banner.ts +0 -22
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* @description CLI portfolio for Ababil Hossain
|
|
6
6
|
* @author Ababil Hossain <ababil.webdev@gmail.com>
|
|
7
7
|
* @license MIT
|
|
8
|
-
* @version
|
|
8
|
+
* @version 2.0.1
|
|
9
9
|
* @repository https://github.com/DevAbabil/ababil.git
|
|
10
10
|
* @created 2024-03-02
|
|
11
11
|
* @lastModified 2025-10-23
|
|
@@ -41,9 +41,6 @@ var import_boxen = __toESM(require("boxen"));
|
|
|
41
41
|
var import_gradient_string = __toESM(require("gradient-string"));
|
|
42
42
|
|
|
43
43
|
// src/data/index.ts
|
|
44
|
-
var import_fs = __toESM(require("fs"));
|
|
45
|
-
var import_path = __toESM(require("path"));
|
|
46
|
-
var pkg = JSON.parse(import_fs.default.readFileSync(import_path.default.resolve(process.cwd(), "package.json"), "utf-8"));
|
|
47
44
|
var data_default = {
|
|
48
45
|
about: {
|
|
49
46
|
name: "Ababil Hossain",
|
|
@@ -111,12 +108,12 @@ var data_default = {
|
|
|
111
108
|
}
|
|
112
109
|
},
|
|
113
110
|
timestamp: {
|
|
114
|
-
createdAt:
|
|
111
|
+
createdAt: "2024-03-02",
|
|
115
112
|
updatedAt: (/* @__PURE__ */ new Date()).toLocaleDateString("en-CA", {
|
|
116
113
|
timeZone: "Asia/Dhaka"
|
|
117
114
|
})
|
|
118
115
|
},
|
|
119
|
-
version:
|
|
116
|
+
version: "2.0.1"
|
|
120
117
|
};
|
|
121
118
|
|
|
122
119
|
// src/components/_header.ts
|
package/package.json
CHANGED
package/banner.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import fs from "fs";
|
|
2
|
-
import path from "path";
|
|
3
|
-
import data from "./src/data";
|
|
4
|
-
|
|
5
|
-
export const pkg = JSON.parse(fs.readFileSync(path.resolve(process.cwd(), "package.json"), "utf-8"));
|
|
6
|
-
|
|
7
|
-
const banner = `
|
|
8
|
-
#!/usr/bin/env node
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* @packageName ${pkg.name}
|
|
12
|
-
* @description ${pkg.description}
|
|
13
|
-
* @author ${pkg?.author}
|
|
14
|
-
* @license MIT
|
|
15
|
-
* @version ${pkg.version}
|
|
16
|
-
* @repository ${pkg?.repository?.url?.replace("git+", "")}
|
|
17
|
-
* @created ${data?.timestamp?.createdAt}
|
|
18
|
-
* @lastModified ${data?.timestamp?.updatedAt}
|
|
19
|
-
**/
|
|
20
|
-
`.trim();
|
|
21
|
-
|
|
22
|
-
fs.writeFileSync("banner.txt", banner);
|