gsmc-pack 2.0.1 → 2.0.2
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 +5 -4
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,12 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
A tool to downloads mods, shaders, resourcepacks, and more automatically, so you don't have to do it manually!
|
|
6
6
|
|
|
7
|
-
## Setup
|
|
7
|
+
## Setup & Usage
|
|
8
8
|
|
|
9
9
|
> [!NOTE]
|
|
10
10
|
> Requires [Bun](https://bun.com) as runtime.
|
|
11
11
|
|
|
12
12
|
```sh
|
|
13
|
+
# Option #1: Clone From GitHub
|
|
13
14
|
git clone https://github.com/DmmDGM/gsmc-pack
|
|
14
15
|
cd gsmc-pack
|
|
15
16
|
bun i
|
|
@@ -17,14 +18,14 @@ bun . --help
|
|
|
17
18
|
```
|
|
18
19
|
|
|
19
20
|
```sh
|
|
21
|
+
# Option #2: Download From NPM
|
|
20
22
|
bun add -g gsmc-pack
|
|
21
23
|
gsmc-pack --help
|
|
22
24
|
```
|
|
23
25
|
|
|
24
|
-
## Usage
|
|
25
|
-
|
|
26
26
|
```sh
|
|
27
|
-
|
|
27
|
+
# Option #3: Execute from NPM
|
|
28
|
+
bunx gsmc-pack
|
|
28
29
|
```
|
|
29
30
|
|
|
30
31
|
## Flags
|
package/index.ts
CHANGED
|
@@ -336,7 +336,7 @@ for(const origin of origins.values()) {
|
|
|
336
336
|
if(!lookup.ok) throw new Error(`Failed to fetch URL ${blue($URL)}.`);
|
|
337
337
|
|
|
338
338
|
// Fetches file
|
|
339
|
-
const filename = parseDisposition(lookup) ?? $URL.split("/").at(-1) ?? $TARGET;
|
|
339
|
+
const filename = parseDisposition(lookup) ?? new URL($URL).pathname.split("/").at(-1) ?? $TARGET;
|
|
340
340
|
const file = fetchFile(filename, $TYPE);
|
|
341
341
|
|
|
342
342
|
// Packs origin
|
package/package.json
CHANGED