ababil 2.0.4 → 2.0.5

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/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "ababil",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
4
4
  "description": "CLI portfolio for Ababil Hossain",
5
- "main": "index.js",
5
+ "main": "dist/index.js",
6
6
  "bin": {
7
7
  "ababil": "./dist/index.js"
8
8
  },
@@ -10,8 +10,7 @@
10
10
  "scripts": {
11
11
  "dev": "tsx --watch ./src/index.ts",
12
12
  "start": "node ./dist/index.js",
13
- "build": "sh ./scripts/build.sh",
14
- "publish:latest": "sh ./scripts/publish.sh"
13
+ "build": "sh ./scripts/build.sh"
15
14
  },
16
15
  "keywords": [
17
16
  "CLI",
@@ -25,23 +24,26 @@
25
24
  "license": "MIT",
26
25
  "repository": {
27
26
  "type": "git",
28
- "url": "https://github.com/DevAbabil/ababil.git"
27
+ "url": "https://github.com/AbabilCore/ababil.git"
29
28
  },
30
29
  "bugs": {
31
- "url": "https://github.com/DevAbabil/ababil/issues"
30
+ "url": "https://github.com/AbabilCore/ababil/issues"
32
31
  },
33
- "homepage": "https://github.com/DevAbabil/ababil#readme",
32
+ "homepage": "https://github.com/AbabilCore/ababil#readme",
34
33
  "createdAt": "2024-03-02",
35
- "dependencies": {
36
- "boxen": "^8.0.1",
37
- "chalk": "^5.6.2",
38
- "gradient-string": "^3.0.0"
39
- },
40
34
  "devDependencies": {
41
35
  "@types/node": "^24.9.1",
36
+ "boxen": "^8.0.1",
37
+ "chalk": "^5.6.2",
38
+ "gradient-string": "^3.0.0",
42
39
  "rimraf": "^6.0.1",
43
40
  "tsup": "^8.5.0",
44
41
  "tsx": "^4.20.6",
45
- "typescript": "^5.9.3"
42
+ "typescript": "^5.9.3",
43
+ "wrap-ansi": "^9.0.0"
44
+ },
45
+ "allowScripts": {
46
+ "esbuild@0.27.7": true,
47
+ "esbuild@0.28.2": true
46
48
  }
47
49
  }
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/bash
2
+
3
+ # Clean dist directory
4
+ echo "Cleaning dist directory..."
5
+ rm -rf dist
6
+
7
+ # Build with tsup
8
+ echo "Building with tsup..."
9
+ npx tsup
10
+
11
+ # Copy data.json to dist
12
+ echo "Copying data.json..."
13
+ cp ../data.json dist/
14
+
15
+ # Make the output file executable
16
+ chmod +x dist/index.js
17
+
18
+ echo "✅ Build complete!"
@@ -0,0 +1,19 @@
1
+ import chalk from "chalk";
2
+ import data from "../data/index";
3
+
4
+ const about = (): string => `${chalk.bold("👤 About Me")}
5
+
6
+ ~/ ${chalk.bold("Name")} ${chalk.bold(":")} ${data.about.name}
7
+ ~/ ${chalk.bold("Profession")} ${chalk.bold(":")} ${data.about.profession}
8
+ ~/ ${chalk.bold("Gmail")} ${chalk.bold(":")} ${chalk.blue.underline(data.contact.gmail)}
9
+
10
+ ~/ ${chalk.bold("Location")} ${chalk.bold(":")} ${data.about.address}
11
+ ~/ ${chalk.bold("WhatsApp")} ${chalk.bold(":")} ${chalk.cyan(data.contact.whatsapp)}
12
+ ~/ ${chalk.bold("Website")} ${chalk.bold(":")} ${chalk.blue.underline(data.contact.website)}
13
+ ~/ ${chalk.bold("GitHub")} ${chalk.bold(":")} ${chalk.blue.underline(data.contact.github)}
14
+ ~/ ${chalk.bold("X (Twitter)")} ${chalk.bold(":")} ${chalk.blue.underline(data.contact.x)}
15
+ ~/ ${chalk.bold("Discord")} ${chalk.bold(":")} ${chalk.blue.underline(data.contact.discord)}
16
+ ~/ ${chalk.bold("Facebook")} ${chalk.bold(":")} ${chalk.blue.underline(data.contact.facebook)}
17
+ `;
18
+
19
+ export default about;
@@ -0,0 +1,16 @@
1
+ import boxen from "boxen";
2
+ import gradient from "gradient-string";
3
+ import data from "../data/index";
4
+
5
+ const footer = (): string =>
6
+ gradient.instagram.multiline(
7
+ boxen(
8
+ `💬 Thanks for visiting my CLI portfolio!
9
+ Created : ${data.timestamp.createdAt}
10
+ Updated : ${data.timestamp.updatedAt}
11
+ Version : ababil@${data.version}`,
12
+ { textAlignment: "center", width: 82 },
13
+ ),
14
+ );
15
+
16
+ export default footer;
@@ -0,0 +1,15 @@
1
+ import gradient from "gradient-string";
2
+ import boxen from "boxen";
3
+ import data from "../data/index";
4
+
5
+ const header = (): string =>
6
+ gradient.pastel.multiline(`${boxen(
7
+ `=============================================
8
+ 👋 Hi, I'm ${data.about.name}
9
+ 💻 ${data.about.profession}
10
+ =============================================`,
11
+ { textAlignment: "center", width: 82, borderStyle: "singleDouble" },
12
+ )}
13
+ `);
14
+
15
+ export default header;
@@ -0,0 +1,45 @@
1
+ import chalk from "chalk";
2
+ import wrapAnsi from "wrap-ansi";
3
+ import data from "../data/index";
4
+
5
+ const project = data.projects;
6
+ const terminalWidth = process.stdout.columns || 80;
7
+
8
+ interface Project {
9
+ label: string;
10
+ source: string;
11
+ description: string;
12
+ }
13
+
14
+ const formatItem = (p: Project): string => {
15
+ const bullet = chalk.green("•");
16
+ const title = chalk.bold.white(p.label);
17
+ const desc = wrapAnsi(chalk.gray(p.description), terminalWidth - 4, {
18
+ hard: false,
19
+ });
20
+ const source = chalk.blue.underline(p.source);
21
+
22
+ return [`${bullet} ${title}`, ` → ${desc}`, ` Source: ${source}`].join(
23
+ "\n",
24
+ );
25
+ };
26
+
27
+ const projects = (): string => `
28
+ ${chalk.greenBright.bold("🌐 Featured Projects:")}
29
+
30
+ ${[
31
+ project.cutefetch,
32
+ project["emoji-picker"],
33
+ project.sigla,
34
+ project.siteviews,
35
+ project["react-siteviews"],
36
+ project["make-public"],
37
+ project["gen-table"],
38
+ project["mongoose-qb"],
39
+ project["jobx-cli"],
40
+ ]
41
+ .map(formatItem)
42
+ .join("\n\n")}
43
+ `;
44
+
45
+ export default projects;
@@ -0,0 +1,14 @@
1
+ import chalk from "chalk";
2
+ import data from "../data/index";
3
+
4
+ const skills = (): string => `
5
+ ${chalk.bold("🚀 Skills Overview")}
6
+
7
+ + ${chalk.cyan("Frontend")} ${chalk.bold(":")} ${data.skills.frontend.join(", ")}
8
+ + ${chalk.green("Backend")} ${chalk.bold(":")} ${data.skills.backend.join(", ")}
9
+ + ${chalk.greenBright("Database")} ${chalk.bold(":")} ${data.skills.database.join(", ")}
10
+ + ${chalk.cyanBright("Languages")} ${chalk.bold(":")} ${data.skills.language.join(", ")}
11
+ + ${chalk.cyan("Tools")} ${chalk.bold(":")} ${data.skills.tools.join(", ")}
12
+ `;
13
+
14
+ export default skills;
@@ -0,0 +1 @@
1
+ export default ;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @packageName ababil
3
+ * @description CLI portfolio for Ababil Hossain
4
+ * @author Ababil Hossain <ababil.webdev@gmail.com>
5
+ * @license MIT
6
+ * @version 2.0.4
7
+ * @repository https://github.com/AbabilCore/ababil.git
8
+ * @created 2024-03-02
9
+ * @lastModified 2026-09-19
10
+ **/
11
+
12
+ import { readFileSync } from "fs";
13
+ import { join, dirname } from "path";
14
+ import { fileURLToPath } from "url";
15
+
16
+ // Get the directory where the compiled JS file is located
17
+ const dataPath = join(__dirname, "data.json");
18
+ const data = JSON.parse(readFileSync(dataPath, "utf-8"));
19
+
20
+ export default data;
package/src/index.ts ADDED
@@ -0,0 +1,35 @@
1
+ /**
2
+ * @packageName ababil
3
+ * @description CLI portfolio for Ababil Hossain
4
+ * @author Ababil Hossain <ababil.webdev@gmail.com>
5
+ * @license MIT
6
+ * @version 2.0.4
7
+ * @repository https://github.com/AbabilCore/ababil.git
8
+ * @created 2024-03-02
9
+ * @lastModified 2026-03-10
10
+ **/
11
+
12
+ import boxen from "boxen";
13
+ import { log } from "console";
14
+ import header from "./components/_header";
15
+ import about from "./components/_about";
16
+ import skills from "./components/_skills";
17
+ import projects from "./components/_projects";
18
+ import footer from "./components/_footer";
19
+
20
+ const content = boxen(
21
+ `${header()}
22
+ ${about()}
23
+ ${skills()}
24
+ ${projects()}
25
+ ${footer()}`,
26
+ {
27
+ padding: 0.5,
28
+ borderStyle: "round",
29
+ borderColor: "green",
30
+ width: 87,
31
+ title: "AbabilCore CLI README",
32
+ },
33
+ );
34
+
35
+ log(content);
@@ -0,0 +1,4 @@
1
+ declare module "*.json" {
2
+ const value: any;
3
+ export default value;
4
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,25 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2022",
4
+ "module": "ESNext",
5
+ "lib": ["ES2022"],
6
+ "moduleResolution": "node",
7
+ "esModuleInterop": true,
8
+ "allowSyntheticDefaultImports": true,
9
+ "strict": true,
10
+ "skipLibCheck": true,
11
+ "forceConsistentCasingInFileNames": true,
12
+ "resolveJsonModule": true,
13
+ "outDir": "./dist",
14
+ "rootDir": "./src",
15
+ "declaration": true,
16
+ "declarationMap": true,
17
+ "sourceMap": true,
18
+ "noUnusedLocals": true,
19
+ "noUnusedParameters": true,
20
+ "noImplicitReturns": true,
21
+ "noFallthroughCasesInSwitch": true
22
+ },
23
+ "include": ["src/**/*"],
24
+ "exclude": ["node_modules", "dist"]
25
+ }
package/tsup.config.ts ADDED
@@ -0,0 +1,18 @@
1
+ import { defineConfig } from "tsup";
2
+
3
+ export default defineConfig({
4
+ entry: ["src/index.ts"],
5
+ format: ["cjs"],
6
+ target: "node18",
7
+ outDir: "dist",
8
+ outExtension: () => ({ js: ".js" }),
9
+ clean: true,
10
+ minify: true,
11
+ sourcemap: false,
12
+ dts: false,
13
+ shims: true,
14
+ noExternal: [/.*/], // Bundle all dependencies
15
+ banner: {
16
+ js: "#!/usr/bin/env node",
17
+ },
18
+ });
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License Copyright (c) 2025 DevAbabil
2
-
3
- Permission is hereby granted, free of
4
- charge, to any person obtaining a copy of this software and associated
5
- documentation files (the "Software"), to deal in the Software without
6
- restriction, including without limitation the rights to use, copy, modify, merge,
7
- publish, distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to the
9
- following conditions:
10
-
11
- The above copyright notice and this permission notice
12
- (including the next paragraph) shall be included in all copies or substantial
13
- portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
16
- ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
18
- EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
19
- OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.