subhadip-a063 1.0.1 → 1.0.3

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 +8 -19
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -95,9 +95,9 @@ const info = `
95
95
  ${chalk.bold("🚀 Co-Founder @NIXGN")}
96
96
  ${chalk.gray("Design Engineer | UI/UX Designer | Frontend Dev")}
97
97
 
98
- ${chalk.cyan("🌐 Portfolio")} ${terminalLink("", "https://a063.xyz")}
99
- ${chalk.green("🐙 GitHub")} ${terminalLink("", "https://github.com/Subhadipjana95")}
100
- ${chalk.blue("💼 LinkedIn")} ${terminalLink("", "https://linkedin.com/in/subhadipjana095")}
98
+ ${chalk.cyan("🌐 Portfolio")} ${terminalLink("Portfolio Link", "https://a063.xyz")}
99
+ ${chalk.green("🐙 GitHub")} ${terminalLink("GitHub Profile Link", "https://github.com/Subhadipjana95")}
100
+ ${chalk.blue("💼 LinkedIn")} ${terminalLink("LinkedIn Profile Link", "https://linkedin.com/in/subhadipjana095")}
101
101
 
102
102
  ${chalk.yellow("Run:")} npx subhadip-a063
103
103
  `;
@@ -156,20 +156,8 @@ function render() {
156
156
 
157
157
  console.log(centeredBox);
158
158
 
159
- // renderFooter();
160
159
  }
161
160
 
162
- // ----------------------
163
- // FOOTER
164
- // ----------------------
165
-
166
- // function renderFooter() {
167
- // const width = cliWidth();
168
- // const footer = "Type commands to get more info | Type 'help' for commands";
169
- // const padding = Math.max(0, Math.floor((width - footer.length) / 2));
170
- // console.log(" ".repeat(padding) + chalk.gray(footer));
171
- // }
172
-
173
161
  // ----------------------
174
162
  // INTERACTIVE MODE
175
163
  // ----------------------
@@ -189,19 +177,20 @@ function startInteractiveMode() {
189
177
  // Draw top border and hint
190
178
  console.log("");
191
179
  console.log(indent + b("╭" + "─".repeat(boxWidth - 2) + "╮"));
192
- console.log(indent + b("│") + chalk.gray(" Type: help | projects | skills | exit".padEnd(boxWidth - 2)) + b("│"));
180
+ console.log(indent + b("│") + chalk.gray(" Type: 'help' to know all commands".padEnd(boxWidth - 2)) + b("│"));
193
181
  console.log(indent + b("├" + "─".repeat(boxWidth - 2) + "┤"));
194
182
  console.log(indent + b("│") + " ".repeat(boxWidth - 2) + b("│"));
195
183
  console.log(indent + b("╰" + "─".repeat(boxWidth - 2) + "╯"));
196
184
 
197
- // Move cursor up 1 line (onto the empty input row)
198
- process.stdout.write("\x1B[2A\r");
185
+ // Move cursor up to the empty input row
186
+ process.stdout.write("\x1B[2F");
187
+ process.stdout.write("\r");
199
188
 
200
189
  // Prompt with left border character
201
190
  const promptPrefix = indent + b("│ ") + chalk.green("❯ ");
202
191
 
203
192
  rl.question(promptPrefix, (answer) => {
204
- // Move cursor down past the bottom border
193
+ // Move cursor past the box before clearing
205
194
  process.stdout.write("\n\n");
206
195
  handleCommand(answer.trim().toLowerCase());
207
196
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "subhadip-a063",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "CLI intro for Subhadip Jana",
5
5
  "main": "index.js",
6
6
  "bin": {