lassiecoder 1.0.6 → 1.0.7

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # npx-lassiecoder
1
+ # `npx lassiecoder` in your terminal?
2
2
 
3
3
  ## Preview
4
4
 
@@ -63,7 +63,7 @@ Execute your script with the following command:
63
63
  node bin/index.js
64
64
  ```
65
65
 
66
- ### Step 6: Publish the package
66
+ ### Step 6: Publish the package
67
67
 
68
68
  Once your script runs successfully, publish the package:
69
69
 
@@ -86,8 +86,6 @@ Once the package is published, run your npx command:
86
86
  npx username
87
87
  ```
88
88
 
89
- Replace `username` with the name you selected for your package.
90
-
91
89
  Follow these steps to create your personalized NPX introduction command and share it with others!
92
90
 
93
91
  ***Happy coding! 🚀***
package/bin/index.js CHANGED
@@ -1,9 +1,5 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- // 'use strict'
4
-
5
- // const fs = require('fs');
6
-
7
3
  import fs from "fs";
8
4
  import os from "os";
9
5
  import ora from 'ora';
@@ -12,18 +8,18 @@ import open from "open";
12
8
  import axios from "axios";
13
9
  import boxen from "boxen";
14
10
  import chalk from "chalk";
11
+ import dotenv from 'dotenv';
15
12
  import inquirer from "inquirer";
16
13
  import cliSpinners from 'cli-spinners';
17
14
 
15
+ dotenv.config();
16
+
18
17
  // Create a prompt module for interacting with the user via the command line interface
19
18
  const prompt = inquirer.createPromptModule();
20
19
 
21
20
  // Get the desktop directory path based on the operating system
22
21
  const desktopDir = path.join(os.homedir(), 'Desktop');
23
22
 
24
- // Replace this URL with your Google Drive shareable link
25
- const googleDriveUrl = "https://drive.google.com/uc?id=1TEapFw5YptU36UMnHLfHAxXO1ls3Zp-e";
26
-
27
23
  // Create a loader to indicate that the resume is being downloaded
28
24
  const loader = ora({
29
25
  text: ' Downloading resume',
@@ -51,7 +47,7 @@ const questions = [
51
47
  name: `Send me an ${chalk.green.bold("email")}?`,
52
48
  value: () => {
53
49
  setTimeout(() => {
54
- open("mailto:sharmapriyanka84510@gmail.com");
50
+ open(process.env.MAIL_TO);
55
51
  }, 2000);
56
52
  console.log(`\n${chalk.green.bold("Done")}, your email client should ${chalk.yellow.bold("open soon")}. \nI'll keep an eye out for your message! ${chalk.bold("👀")}\n`);
57
53
  }
@@ -62,7 +58,7 @@ const questions = [
62
58
  loader.start();
63
59
  axios({
64
60
  method: 'get',
65
- url: googleDriveUrl,
61
+ url: process.env.GOOGLE_DRIVE_URL,
66
62
  responseType: 'stream'
67
63
  })
68
64
  .then(function (response) {
@@ -71,19 +67,19 @@ const questions = [
71
67
  response.data.pipe(writer);
72
68
 
73
69
  writer.on('finish', () => {
74
- console.log('\n\nResume downloaded successfully to desktop 📂 ✅\n\n');
70
+ console.log('\nResume downloaded successfully to desktop 📂 ✅\n');
75
71
  loader.stop();
76
72
  setTimeout(() => {
77
73
  open(path.join(desktopDir, 'lassiecoder-resume.pdf'));
78
74
  }, 2000);
79
75
  });
80
76
  writer.on('error', (err) => {
81
- console.error('Error downloading resume:', err);
77
+ console.error('\nError downloading resume:', err);
82
78
  loader.stop();
83
79
  });
84
80
  })
85
81
  .catch(function (error) {
86
- console.error('Error downloading resume:', error);
82
+ console.error('\nError downloading resume:', error);
87
83
  loader.stop();
88
84
  });
89
85
  }
@@ -92,7 +88,7 @@ const questions = [
92
88
  name: `Schedule a ${chalk.redBright.bold("Meeting")}?`,
93
89
  value: () => {
94
90
  setTimeout(() => {
95
- open('https://calendly.com/lassiecoder/30min')
91
+ open(process.env.CALENDLY)
96
92
  }, 2000);
97
93
  console.log(chalk.hex("#4CAF50")(`\nI'm available on ${chalk.yellow("Fridays from 6:00 PM to 6:15 PM")} for a connection. When scheduling a meeting, please include the ${chalk.yellow("subject")} of our discussion. \nLooking forward to meeting you at the scheduled time! 🗓️\n \n`));
98
94
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lassiecoder",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Priyanka's introduction on terminal.",
5
5
  "exports": "./index.js",
6
6
  "bin": {
@@ -36,9 +36,9 @@
36
36
  "boxen": "^7.1.0",
37
37
  "chalk": "^5.3.0",
38
38
  "cli-spinners": "^2.9.2",
39
+ "dotenv": "^16.4.5",
39
40
  "fs": "^0.0.1-security",
40
41
  "inquirer": "^9.2.15",
41
- "node-fetch": "^3.3.2",
42
42
  "open": "^7.0.4",
43
43
  "ora": "^8.0.1",
44
44
  "os": "^0.1.2",