isitcringetomakeit 1.0.0 → 1.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.
Files changed (2) hide show
  1. package/index.js +23 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -281,6 +281,8 @@ if (process.stdin.isTTY) {
281
281
  process.stdin.setRawMode(true);
282
282
  }
283
283
 
284
+ let introFinished = false;
285
+
284
286
  process.stdin.on('keypress', (str, key) => {
285
287
  if (key.name === 'q' || (key.ctrl && key.name === 'c')) {
286
288
  console.clear();
@@ -288,6 +290,8 @@ process.stdin.on('keypress', (str, key) => {
288
290
  process.exit();
289
291
  }
290
292
 
293
+ if (!introFinished) return;
294
+
291
295
  let oldTab = activeTab;
292
296
  if (key.name === 'right') {
293
297
  activeTab = (activeTab + 1) % tabs.length;
@@ -300,5 +304,22 @@ process.stdin.on('keypress', (str, key) => {
300
304
  }
301
305
  });
302
306
 
303
- // Start the app
304
- startTab();
307
+ // Start the app with intro animation
308
+ async function playIntroAnimation() {
309
+ console.clear();
310
+ await new Promise(r => setTimeout(r, 600));
311
+
312
+ const text1 = cfonts.render('Tum Golu ho', { font: 'block', colors: ['magenta'], align: 'center', space: false });
313
+ console.log("\n\n" + text1.string + "\n");
314
+
315
+ await new Promise(r => setTimeout(r, 1200));
316
+
317
+ console.log(chalk.cyan.bold(" (Yes tum hi ho Golu)\n"));
318
+
319
+ await new Promise(r => setTimeout(r, 3000));
320
+
321
+ introFinished = true;
322
+ startTab();
323
+ }
324
+
325
+ playIntroAnimation();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isitcringetomakeit",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "A cute message for my girlfriend",
5
5
  "main": "index.js",
6
6
  "bin": "index.js",