@purpleproser/soundboard-downloader-cli 1.0.0 → 1.1.0

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
@@ -10,6 +10,7 @@ A command-line tool to download soundboard sounds from MyInstants.
10
10
  - 🔍 Search for sounds by name using interactive prompts
11
11
  - 🎵 Preview sounds by playing them in your browser
12
12
  - ⬇️ Download individual sounds to your local machine
13
+ - 📁 Downloads are saved directly in your current working directory
13
14
  - ✨ Simple and easy-to-use interactive interface
14
15
 
15
16
  ## Tech Stack
@@ -64,6 +65,7 @@ npm link
64
65
  **Note**: This package uses the `@purpleproser` npm scope (my npm username) while the GitHub repository remains under `blacksagres`. Make sure to include the `@purpleproser/` prefix when installing!
65
66
 
66
67
  **For Developers**: If you fork this project and want to publish your own version, either:
68
+
67
69
  1. Use a different package name, or
68
70
  2. Create your own npm scope and update the package name, or
69
71
  3. Add `"publishConfig": { "access": "public" }` to your package.json
@@ -106,7 +108,7 @@ The CLI will guide you through an interactive process:
106
108
 
107
109
  1. **Search**: You'll be prompted to enter what sound effects you're looking for
108
110
  2. **Select**: Choose from the list of matching sounds
109
- 3. **Action**: Decide whether to play the sound in your browser or download it to your `./temp/` directory
111
+ 3. **Action**: Decide whether to play the sound in your browser or download it to your **current working directory**
110
112
 
111
113
  ### Example Workflow
112
114
 
@@ -147,7 +149,22 @@ src/
147
149
 
148
150
  ### Download Location
149
151
 
150
- Downloaded sounds are saved to the `./temp/` directory in the project root.
152
+ Downloaded sounds are saved directly in your current working directory. For example:
153
+
154
+ ```bash
155
+ # If you run from /home/user/projects/
156
+ cd /home/user/projects/
157
+ soundboard-downloader
158
+ # Downloads will be saved to: /home/user/projects/wilhelm-scream.mp3
159
+ ```
160
+
161
+ **Tip**: Create a dedicated directory for your downloads:
162
+
163
+ ```bash
164
+ mkdir my-sounds && cd my-sounds
165
+ soundboard-downloader
166
+ # All downloads will appear in the my-sounds directory
167
+ ```
151
168
 
152
169
  ## Contributing
153
170
 
package/dist/main.js CHANGED
@@ -52,8 +52,9 @@ const file_downloader_service_1 = require("./service/file-downloader.service");
52
52
  spinner: "growHorizontal",
53
53
  }).start();
54
54
  const downloadFileName = downloadUrl.split("/").pop();
55
+ // Download directly to current working directory
55
56
  (0, file_downloader_service_1.downloadFile)(downloadUrl, {
56
- destination: `./temp/${downloadFileName}`,
57
+ destination: downloadFileName,
57
58
  onStart: () => downloadSpinner.start(),
58
59
  onFinish: () => downloadSpinner.stop(),
59
60
  });
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";;;AAEA,uEAA8D;AAC9D,6BAAsB;AACtB,+CAAkD;AAClD,+BAAwB;AACxB,+EAAiE;AAEjE,CAAC,KAAK;IACJ,MAAM,MAAM,GAAG,MAAM,IAAA,eAAK,EAAC;QACzB,OAAO,EAAE,yCAAyC;KACnD,CAAC,CAAC;IAEH,MAAM,OAAO,GAAG,IAAA,aAAG,EAAC;QAClB,IAAI,EAAE,mBAAmB;QACzB,KAAK,EAAE,SAAS;QAChB,OAAO,EAAE,cAAc;KACxB,CAAC,CAAC,KAAK,EAAE,CAAC;IAEX,MAAM,MAAM,GAAG,MAAM,IAAA,mCAAa,EAAC,MAAM,CAAC,CAAC;IAE3C,OAAO,CAAC,IAAI,EAAE,CAAC;IAEf,MAAM,SAAS,GAAG,MAAM,IAAA,gBAAM,EAAC;QAC7B,OAAO,EAAE,wBAAwB;QACjC,OAAO,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;YAC9B,IAAI,EAAE,KAAK,CAAC,KAAK;YACjB,KAAK,EAAE,GAAG,KAAK,CAAC,KAAK,KAAK,KAAK,CAAC,YAAY,EAAW;SACxD,CAAC,CAAC;KACJ,CAAC,CAAC;IAEH,MAAM,CAAC,KAAK,EAAE,WAAW,CAAC,GAAG,SAAS,CAAC,KAAK,C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,KAAK,iBAAiB,EAAE,CAAC;QACjC,MAAM,eAAe,GAAG,IAAA,aAAG,EAAC;YAC1B,IAAI,EAAE,qBAAqB;YAC3B,KAAK,EAAE,MAAM;YACb,OAAO,EAAE,gBAAgB;SAC1B,CAAC,CAAC,KAAK,EAAE,CAAC;QAEX,MAAM,gBAAgB,GAAG,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC;QAEtD,iDAAiD;QACjD,IAAA,sCAAY,EAAC,WAAW,EAAE;YACxB,WAAW,EAAE,gBAAiB;YAC9B,OAAO,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,KAAK,EAAE;YACtC,QAAQ,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE;SACvC,CAAC,CAAC;IACL,CAAC;AACH,CAAC,CAAC,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleproser/soundboard-downloader-cli",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "Easily download sounds from myinstants.com using this interactive CLI tool",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -37,7 +37,6 @@
37
37
  "homepage": "https://github.com/blacksagres/soundboard-downloader-cli#readme",
38
38
  "devDependencies": {
39
39
  "@types/jsdom": "^27.0.0",
40
- "@types/node": "^25.2.3",
41
40
  "ts-node": "^10.9.2",
42
41
  "typescript": "^5.9.3"
43
42
  },