@nathievzm/lumi 1.1.4 → 1.1.6

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.
@@ -1,3 +1,3 @@
1
- {
2
- "extends": ["@commitlint/config-conventional"]
3
- }
1
+ {
2
+ "extends": ["@commitlint/config-conventional"]
3
+ }
package/.env.example CHANGED
@@ -1,11 +1,12 @@
1
- # Default target dimensions for images
2
- WIDTH = '800'
3
- HEIGHT = '600'
4
-
5
- # Default folder paths (can be relative or absolute)
6
- INPUT_FOLDER = './input'
7
- OUTPUT_FOLDER = './output'
8
-
9
- # Default processing settings
10
- FORMAT = '.webp'
11
- LIMIT = '10'
1
+ # Default target dimensions for images
2
+ WIDTH = '800'
3
+ HEIGHT = '600'
4
+
5
+ # Default folder paths (can be relative or absolute)
6
+ INPUT_FOLDER = './input'
7
+ OUTPUT_FOLDER = './output'
8
+
9
+ # Default processing settings
10
+ FORMAT = '.webp'
11
+ LIMIT = '10'
12
+ RECURSIVE = 'false'
@@ -0,0 +1,8 @@
1
+ declare module 'bun' {
2
+ interface Env {
3
+ /**
4
+ * The GitHub personal access token used for authentication in GitHub Actions scripts.
5
+ */
6
+ GITHUB_TOKEN?: string
7
+ }
8
+ }
@@ -0,0 +1,44 @@
1
+ import { exit } from 'node:process'
2
+
3
+ import { type PullRequest } from '@octokit/webhooks-types'
4
+
5
+ import { context, octokit } from './octokit'
6
+
7
+ const isPullRequest = (data: unknown): data is PullRequest =>
8
+ typeof data === 'object' && data !== null && 'head' in data
9
+
10
+ const pullRequest = context.payload.pull_request
11
+
12
+ if (!isPullRequest(pullRequest)) {
13
+ throw new Error('this event does not contain a pull request! 😢')
14
+ }
15
+
16
+ const branch = /\w+\/(\d+)-\w+/v.exec(pullRequest.head.ref)
17
+
18
+ if (branch === null || branch.length < 2 || branch[1] === undefined) {
19
+ console.log(`skipping: branch ${pullRequest.head.ref} does not match the issue format. ⏭️`)
20
+ exit(0)
21
+ }
22
+
23
+ const issueNumber = Number(branch[1])
24
+
25
+ const { data: issue, status } = await octokit.rest.issues.get({
26
+ issue_number: issueNumber,
27
+ owner: context.repo.owner,
28
+ repo: context.repo.repo
29
+ })
30
+
31
+ if (status !== 200) {
32
+ throw new Error('failed to fetch the issue! 😟')
33
+ }
34
+
35
+ const labels = issue.labels
36
+ .map(label => (typeof label === 'string' ? label : label.name))
37
+ .filter((name): name is string => typeof name === 'string' && name.length > 0)
38
+
39
+ await octokit.rest.issues.addLabels({
40
+ issue_number: context.issue.number,
41
+ labels,
42
+ owner: context.repo.owner,
43
+ repo: context.repo.repo
44
+ })
@@ -0,0 +1,8 @@
1
+ import { context, octokit } from './octokit'
2
+
3
+ await octokit.rest.issues.addAssignees({
4
+ assignees: [context.actor],
5
+ issue_number: context.issue.number,
6
+ owner: context.repo.owner,
7
+ repo: context.repo.repo
8
+ })
@@ -0,0 +1,10 @@
1
+ import { context, getOctokit } from '@actions/github'
2
+
3
+ const token = Bun.env.GITHUB_TOKEN
4
+
5
+ if (token === undefined) {
6
+ throw new Error('GITHUB_TOKEN is missing! 😭')
7
+ }
8
+
9
+ const octokit = getOctokit(token)
10
+ export { context, octokit }
@@ -0,0 +1,20 @@
1
+ name: add labels from issue to pull request
2
+
3
+ on:
4
+ pull_request:
5
+ types: [opened]
6
+
7
+ jobs:
8
+ add-labels:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - name: check out repository code
12
+ uses: actions/checkout@v6
13
+ - name: set up bun
14
+ uses: oven-sh/setup-bun@v2
15
+ - name: install dependencies
16
+ run: bun install
17
+ - name: run bun script to add labels from issue to pull request
18
+ run: bun .github/scripts/add-labels-pr
19
+ env:
20
+ GITHUB_TOKEN: ${{ secrets.LUMI_ADD_LABELS_PR }}
@@ -1,30 +1,24 @@
1
- name: auto assign author
2
-
3
- on:
4
- issues:
5
- types: [opened]
6
- pull_request:
7
- types: [opened]
8
-
9
- jobs:
10
- assign:
11
- runs-on: ubuntu-latest
12
- permissions:
13
- issues: write
14
- pull-requests: write
15
- steps:
16
- - name: assign the user who opened the ticket or pr
17
- uses: actions/github-script@v7
18
- with:
19
- github-token: ${{ secrets.LUMI_AUTOASSIGN_TOKEN }}
20
- script: |
21
- // grab the username of the person who triggered the action
22
- const author = context.actor
23
-
24
- // tell github's api to assign the ticket to that username
25
- await github.rest.issues.addAssignees({
26
- owner: context.repo.owner,
27
- repo: context.repo.repo,
28
- issue_number: context.issue.number,
29
- assignees: [author]
30
- })
1
+ name: auto assign author to issue or pr
2
+
3
+ run-name: ${{ github.actor }} is automatically assigned to the issue or pr they just opened ✅
4
+
5
+ on:
6
+ issues:
7
+ types: [opened]
8
+ pull_request:
9
+ types: [opened]
10
+
11
+ jobs:
12
+ assign:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - name: check out repository code
16
+ uses: actions/checkout@v6
17
+ - name: set up bun
18
+ uses: oven-sh/setup-bun@v2
19
+ - name: install dependencies
20
+ run: bun install
21
+ - name: run bun script to auto-assign the author
22
+ run: bun .github/scripts/auto-assign
23
+ env:
24
+ GITHUB_TOKEN: ${{ secrets.LUMI_AUTOASSIGN }}
package/.jules/bolt.md ADDED
@@ -0,0 +1,36 @@
1
+ ## 2026-05-12 - [Optimizing Array & Set Operations]
2
+
3
+ **Learning:** In hot paths handling large numbers of files, using chained array methods like `.flatMap()`, `new Set()`,
4
+ spread operators, and `.filter()` creates unnecessary intermediate arrays and memory allocations. Furthermore,
5
+ repeatedly creating static Sets inside functions adds unnecessary O(N) overhead per call.
6
+
7
+ **Action:** When iterating over potentially large lists (like file paths), favor a single-pass `for...of` loop over
8
+ chained array methods to minimize memory footprint. Always pull static Set creation outside of function scopes to
9
+ initialize them once at the module level.
10
+
11
+ ## 2026-05-15 - [Avoid Caching in Run-Once CLI Apps]
12
+
13
+ **Learning:** Implementing in-memory caching (like storing `sharp.format` values in a module-scoped variable) is
14
+ ineffective and adds unnecessary complexity in a CLI application that has a strictly 'run-once-and-exit' lifecycle. The
15
+ cache is built but never reused because the process terminates immediately after its primary task.
16
+
17
+ **Action:** Always consider the application's lifecycle (e.g., long-running server vs. short-lived CLI script) before
18
+ introducing caching or memoization. Prefer pure functions, readability, and KISS/YAGNI principles over
19
+ micro-optimizations that create global mutable state without a measurable benefit in the specific execution context.
20
+
21
+ ## 2024-05-18 - [Replace Heavy Polyfills with Native APIs]
22
+
23
+ **Learning:** Using heavy polyfills like `@js-temporal/polyfill` solely for simple duration measurement introduces
24
+ significant (~90ms) startup overhead, which is detrimental to CLI performance.
25
+
26
+ **Action:** Always prefer native APIs like `performance.now()` for simple duration tracking to avoid the overhead of
27
+ parsing and instantiating large external libraries.
28
+
29
+ ## 2024-05-19 - [Avoid Awaiting Dynamic Imports in Critical Path]
30
+
31
+ **Learning:** Using \`await import(...)\` for a heavy module during the synchronous CLI startup phase blocks execution,
32
+ failing to deliver the intended performance benefit of a dynamic import (it just shifts the penalty to a different
33
+ point).
34
+
35
+ **Action:** If deferring a heavy module for a non-critical side effect (like update checking), use promise chaining
36
+ (\`.then().catch()\`) without \`await\` to allow the main execution thread to continue immediately.
@@ -0,0 +1,32 @@
1
+ ## 2026-05-12 - Added error output for failed images
2
+
3
+ **Learning:** Users need to know exactly which images failed during batch processing. An overall error message is not
4
+ actionable.
5
+
6
+ **Action:** Always output detailed errors for individual batch items when a batch process fails, even if it adds to
7
+ terminal noise, because the user needs to correct specific items.
8
+
9
+ ## 2026-05-13 - Friendly CLI Errors
10
+
11
+ **Learning:** Raw stack traces from unhandled Promise rejections (like `readdir` on a non-existent directory) are
12
+ intimidating for CLI users.
13
+
14
+ **Action:** Always wrap file I/O operations in `try...catch` blocks and use UI logging tools (like `@clack/prompts`) to
15
+ provide actionable, human-readable error messages before gracefully exiting.
16
+
17
+ ## 2026-05-14 - Default CLI Prompt Values
18
+
19
+ **Learning:** When prompting users for repeated or common file conversions, failing to default to the original format
20
+ creates unnecessary friction. Users expect smart defaults that save keystrokes.
21
+
22
+ **Action:** Always set an `initialValue` in CLI selection prompts (`@clack/prompts`) where a logical default exists,
23
+ such as defaulting to a file's original extension during conversion options.
24
+
25
+ ## 2026-05-18 - Rejected Default Value for Dimensions
26
+
27
+ **Learning:** Adding a strict `defaultValue` (e.g., '1080') to the dimensions prompt overrides the helpful `placeholder`
28
+ text visually in the UI, making the interface less descriptive and potentially confusing for users who need custom
29
+ sizes.
30
+
31
+ **Action:** Prioritize descriptive placeholders over hardcoded default values for free-text inputs where the user might
32
+ legitimately need a wide variety of formats (like dimensions).
@@ -0,0 +1,47 @@
1
+ ## 2026-05-12 - Fix Missing Input Length Limits (DoS Risk)
2
+
3
+ **Vulnerability:** Denial of Service (DoS) vulnerability via resource exhaustion caused by unconstrained width and
4
+ height parameters during image resizing with Sharp.
5
+
6
+ **Learning:** Tools handling image processing can easily be abused to consume excessive memory if user-provided
7
+ dimensions are unchecked, potentially crashing the Node.js/Bun process.
8
+
9
+ **Prevention:** Implement strict length and dimension validation boundaries for all user input governing asset
10
+ generation, catching errors gracefully without leaking system details.
11
+
12
+ ## 2026-05-14 - Fix Path Traversal in Image Output
13
+
14
+ **Vulnerability:** A path traversal vulnerability existed in `src/lib/image.ts`. The output file path was constructed by
15
+ blindly concatenating user input (`cli.format` passed as `extension`) using `join`. An attacker could pass a format
16
+ string like `/../../../tmp/evil.png` to write files to arbitrary locations outside the intended output directory.
17
+
18
+ **Learning:** We must not blindly trust user input that influences file paths, especially file extensions or format
19
+ modifiers. When working with Node.js `path.join`, it resolves relative segments, which can escape the current directory.
20
+
21
+ **Prevention:** Always validate constructed file paths. Before performing any file operation, resolve the final output
22
+ path and check if it strictly starts with the resolved target directory path to prevent path traversals.
23
+
24
+ ## 2026-05-18 - [Path Traversal in Input Resolution]
25
+
26
+ **Vulnerability:** The application was vulnerable to path traversal because it resolved the input image path via
27
+ `join(input, image)` and passed it directly to `sharp` without validation.
28
+
29
+ **Learning:** Even though the `outputPath` was properly guarded against path traversal, the missing guard on `inputPath`
30
+ could allow an attacker to read arbitrary files off the filesystem by specifying a malicious `image` filename with `../`
31
+ sequences.
32
+
33
+ **Prevention:** Always sanitize and guard both input and output paths to ensure they strictly reside within the intended
34
+ boundaries.
35
+
36
+ ## 2026-05-19 - [Null Byte Injection in Path Resolution]
37
+
38
+ **Vulnerability:** The `guard` function used to prevent path traversal was relying on `node:path`'s `resolve` and
39
+ `startsWith` to verify paths. However, strings containing null bytes (`\0`) could cause `resolve` to behave unexpectedly
40
+ or terminate strings prematurely in underlying C++ extensions or certain filesystem API scenarios, effectively bypassing
41
+ the `startsWith` validation check.
42
+
43
+ **Learning:** Node's built-in path module does not inherently protect against null byte injection, and combining strings
44
+ with null bytes can lead to bypassing directory containment checks.
45
+
46
+ **Prevention:** Always explicitly check for and reject null bytes (`\0`) in user-supplied paths before using them in
47
+ file system operations or path resolutions.
package/.oxlintrc.json CHANGED
@@ -24,7 +24,8 @@
24
24
  "no-continue": "off",
25
25
  "require-param-type": "off",
26
26
  "require-returns-type": "off",
27
- "max-dependencies": ["warn", { "max": 16 }]
27
+ "max-dependencies": ["warn", { "max": 16 }],
28
+ "max-classes-per-file": ["warn", { "max": 3 }]
28
29
  },
29
30
  "env": {
30
31
  "builtin": true
@@ -1,12 +1,14 @@
1
- {
2
- "oxc.fmt.configPath": ".oxfmtrc.json",
3
- "editor.defaultFormatter": "oxc.oxc-vscode",
4
- "editor.formatOnSave": true,
5
- "oxc.enable.oxlint": true,
6
- "oxc.enable.oxfmt": true,
7
- "editor.codeActionsOnSave": {
8
- "source.fixAll.oxc": "always"
9
- },
10
- "files.insertFinalNewline": false,
11
- "files.trimTrailingWhitespace": true
12
- }
1
+ {
2
+ "oxc.fmt.configPath": ".oxfmtrc.json",
3
+ "editor.defaultFormatter": "oxc.oxc-vscode",
4
+ "editor.formatOnSave": true,
5
+ "oxc.enable.oxlint": true,
6
+ "oxc.enable.oxfmt": true,
7
+ "editor.codeActionsOnSave": {
8
+ "source.fixAll.oxc": "always",
9
+ "source.format.oxc": "always",
10
+ "source.fixAll": "always"
11
+ },
12
+ "files.insertFinalNewline": false,
13
+ "files.trimTrailingWhitespace": true
14
+ }
package/CHANGELOG.md CHANGED
@@ -1,3 +1,71 @@
1
+ ## [1.1.6](https://github.com/nathievzm/lumi/compare/v1.1.5...v1.1.6) (2026-05-19)
2
+
3
+ ### Bug Fixes
4
+
5
+ - prevent path traversal on input image resolution
6
+ ([cfe9f2a](https://github.com/nathievzm/lumi/commit/cfe9f2a78d570b63fbfe2051bc21b13710930c0e))
7
+ - **prompt:** remove defaultValue to prefer descriptive placeholder
8
+ ([bf63182](https://github.com/nathievzm/lumi/commit/bf631822bf0ab3c9bbc99600692ca7143d651bb6))
9
+ - remove step that logs the whole github json
10
+ ([1ff461d](https://github.com/nathievzm/lumi/commit/1ff461d9192421c6562d85436e45d30fd0b22085))
11
+ - revert changes from jules
12
+ ([2a4db48](https://github.com/nathievzm/lumi/commit/2a4db4843b381da26fb42b1c11839f469029e78e))
13
+
14
+ ### Features
15
+
16
+ - add code to add the issue labels to the pr
17
+ ([d8b5d87](https://github.com/nathievzm/lumi/commit/d8b5d8789879f76a9969a67223593db89638a3ac))
18
+ - add test workflow to sync pr with issue
19
+ ([a4f8e10](https://github.com/nathievzm/lumi/commit/a4f8e1032d12283a456003d5d274bef98914028f))
20
+ - add ts script to get pull request
21
+ ([c7f0e2d](https://github.com/nathievzm/lumi/commit/c7f0e2d9b20b0040889d6dcae76b62eaf5fb17f9))
22
+ - log found connected found issue
23
+ ([edb6375](https://github.com/nathievzm/lumi/commit/edb6375a3881361afc0819b27f71418d560d62b4))
24
+ - move notify function to update module
25
+ ([d701256](https://github.com/nathievzm/lumi/commit/d701256b69b54eae195090ff23dd4ed64f2b0cc1))
26
+ - **prompt:** add default value to dimension prompt
27
+ ([7271ae5](https://github.com/nathievzm/lumi/commit/7271ae5aaef008a8024b916deaae6d6465b9c7bc))
28
+ - remove error when branch doesn't have correct format
29
+ ([03fc8fb](https://github.com/nathievzm/lumi/commit/03fc8fb50466cedd78b959b51c52cd5c52800144))
30
+ - replace auto-assign workflow with ts script and bun action
31
+ ([aeda5fa](https://github.com/nathievzm/lumi/commit/aeda5fa6d09b030a50c079c0ca628ecbd1cd3d50))
32
+ - replace small try/catch by global try/catch block with new errors
33
+ ([74f3d2c](https://github.com/nathievzm/lumi/commit/74f3d2cff8f95e7d521670d9eefca55510ccd3e9))
34
+ - use gh script action to run js scripts
35
+ ([3afe134](https://github.com/nathievzm/lumi/commit/3afe134d76c5d7d14c7cd1dbdce384e0507d5f48))
36
+
37
+ ### Performance Improvements
38
+
39
+ - cache sharp formats to avoid redundant computation
40
+ ([3eea037](https://github.com/nathievzm/lumi/commit/3eea037679b3b9677a13fa4898c2bb81ff31b0c9))
41
+ - cache sharp formats to avoid redundant computation and fix CI
42
+ ([4eeea88](https://github.com/nathievzm/lumi/commit/4eeea88ce1daebafcf8417e996dde515aa6fbf86))
43
+ - replace @js-temporal/polyfill with performance.now()
44
+ ([e28a380](https://github.com/nathievzm/lumi/commit/e28a38065d9f5bc08ea31d04fa37d7e171f42d29))
45
+
46
+ ## [1.1.5](https://github.com/nathievzm/lumi/compare/v1.1.4...v1.1.5) (2026-05-14)
47
+
48
+ ### Bug Fixes
49
+
50
+ - restrict image dimensions to prevent resource exhaustion
51
+ ([40e65f3](https://github.com/nathievzm/lumi/commit/40e65f34f04f22cea1d7f543beddc6d45c66d87a))
52
+
53
+ ### Features
54
+
55
+ - provide smart default for CLI format selection prompt
56
+ ([7e31044](https://github.com/nathievzm/lumi/commit/7e31044e841610b660388258a5cc971246ad2884))
57
+ - **ux:** improve error handling for missing input folders
58
+ ([b4ad267](https://github.com/nathievzm/lumi/commit/b4ad26711348c3f0c38f990531c4f2ea0b3ad0ff))
59
+
60
+ ### Performance Improvements
61
+
62
+ - improve readability of code suggested by jules
63
+ ([aa11125](https://github.com/nathievzm/lumi/commit/aa11125156cec42f97a3e3ab08cdf98fb63aa432))
64
+ - **index:** use getMessage function to get the error message
65
+ ([5571325](https://github.com/nathievzm/lumi/commit/557132529d782af777fa9df3bac03b1fa800f48c))
66
+ - remove oxlint disabled comments by jules
67
+ ([7f6ece6](https://github.com/nathievzm/lumi/commit/7f6ece6379c944504e08865a34bfd0c28819566c))
68
+
1
69
  ## [1.1.4](https://github.com/nathievzm/lumi/compare/v1.1.3...v1.1.4) (2026-05-13)
2
70
 
3
71
  ## [1.1.3](https://github.com/nathievzm/lumi/compare/v1.1.2...v1.1.3) (2026-05-13)
package/README.md CHANGED
@@ -14,6 +14,7 @@ A fast, interactive CLI tool for batch image processing. Resize, convert, and op
14
14
  - **Animated Support:** Seamlessly handles animated GIFs and WebP files.
15
15
  - **Concurrency Control:** Fine-tune performance with configurable processing limits.
16
16
  - **Environment Driven:** Fully configurable via `.env` files or CLI flags.
17
+ - **Update Notifications:** Automatically alerts you when a new version is available.
17
18
 
18
19
  ## 📦 Installation
19
20
 
@@ -111,6 +112,7 @@ bun install
111
112
  - `bun fmt:check`: Check for formatting issues.
112
113
  - `bun changelog`: Update the changelog.
113
114
  - `bun release`: Release a new version with `bumpp` and update the changelog.
115
+ - `bun prepare`: Install git hooks with `lefthook`.
114
116
 
115
117
  ## 📄 License
116
118
 
package/lefthook.yml CHANGED
@@ -1,24 +1,23 @@
1
- pre-commit:
2
- # running all checks at the same time for maximum speed ⚡
3
- parallel: true
4
- jobs:
5
- - name: format
6
- glob: '*.{ts,js,json,yml,yaml,md}'
7
- run: bun fmt {staged_files} && git add {staged_files}
8
-
9
- - name: lint
10
- run: bun lint
11
-
12
- - name: types
13
- run: bunx --bun tsc --noEmit
14
-
15
- commit-msg:
16
- jobs:
17
- - name: commitlint
18
- # using bun to run commitlint as fast as possible 🌸
19
- run: bunx --bun commitlint --edit {1}
20
-
21
- pre-push:
22
- jobs:
23
- - name: test-placeholder
24
- run: echo "ready to push! tests will go here in the future ✨"
1
+ pre-commit:
2
+ # running all checks at the same time for maximum speed ⚡
3
+ parallel: true
4
+ jobs:
5
+ - name: format
6
+ run: bun fmt && git add .
7
+
8
+ - name: lint
9
+ run: bun lint
10
+
11
+ - name: types
12
+ run: bunx --bun tsc --noEmit
13
+
14
+ commit-msg:
15
+ jobs:
16
+ - name: commitlint
17
+ # using bun to run commitlint as fast as possible 🌸
18
+ run: bunx --bun commitlint --edit {1}
19
+
20
+ pre-push:
21
+ jobs:
22
+ - name: test-placeholder
23
+ run: echo "ready to push! tests will go here in the future ✨"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nathievzm/lumi",
3
- "version": "1.1.4",
3
+ "version": "1.1.6",
4
4
  "description": "a concurrent cli tool to resize and convert images using bun and sharp",
5
5
  "keywords": [
6
6
  "bun",
@@ -50,8 +50,7 @@
50
50
  "start": "bun src/index.ts"
51
51
  },
52
52
  "dependencies": {
53
- "@clack/prompts": "^1.3.0",
54
- "@js-temporal/polyfill": "^0.5.1",
53
+ "@clack/prompts": "^1.4.0",
55
54
  "boxen": "^8.0.1",
56
55
  "image-extensions": "^1.1.0",
57
56
  "p-limit": "^7.3.0",
@@ -60,15 +59,17 @@
60
59
  "update-notifier": "^7.3.1"
61
60
  },
62
61
  "devDependencies": {
62
+ "@actions/github": "^9.1.1",
63
63
  "@commitlint/cli": "^20.5.3",
64
64
  "@commitlint/config-conventional": "^20.5.3",
65
+ "@octokit/webhooks-types": "^7.6.1",
65
66
  "@types/bun": "latest",
66
67
  "@types/update-notifier": "^6.0.8",
67
68
  "bumpp": "^11.1.0",
68
69
  "conventional-changelog-cli": "^5.0.0",
69
70
  "lefthook": "^2.1.6",
70
71
  "oxfmt": "^0.47.0",
71
- "oxlint": "^1.64.0",
72
+ "oxlint": "^1.65.0",
72
73
  "oxlint-tsgolint": "^0.22.1",
73
74
  "typescript": "^6.0.3"
74
75
  }
package/src/env.d.ts CHANGED
@@ -1,27 +1,27 @@
1
1
  declare module 'bun' {
2
2
  interface Env {
3
3
  /**
4
- * Default target width for resized images.
4
+ * The default target width in pixels for resized images.
5
5
  */
6
6
  WIDTH?: string
7
7
  /**
8
- * Default target height for resized images.
8
+ * The default target height in pixels for resized images.
9
9
  */
10
10
  HEIGHT?: string
11
11
  /**
12
- * Default path to the input folder containing images.
12
+ * The default path to the input directory containing source images.
13
13
  */
14
14
  INPUT_FOLDER?: string
15
15
  /**
16
- * Default path where processed images will be saved.
16
+ * The default path to the destination directory where processed images will be saved.
17
17
  */
18
18
  OUTPUT_FOLDER?: string
19
19
  /**
20
- * Default global output format (e.g., '.webp', '.png').
20
+ * The default global output format extension (e.g., `.webp`, `.png`).
21
21
  */
22
22
  FORMAT?: string
23
23
  /**
24
- * Default concurrent processing limit.
24
+ * The default concurrent processing limit.
25
25
  */
26
26
  LIMIT?: string
27
27
  /**