single-file-cli 1.1.19 → 1.1.21
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/args.js +5 -2
- package/lib/single-file.js +1 -1
- package/package.json +2 -2
package/args.js
CHANGED
|
@@ -113,7 +113,8 @@ const args = require("yargs")
|
|
|
113
113
|
"insert-text-body": false,
|
|
114
114
|
"create-root-directory": false,
|
|
115
115
|
"self-extracting-archive": true,
|
|
116
|
-
"extract-data-from-page": true
|
|
116
|
+
"extract-data-from-page": true,
|
|
117
|
+
"prevent-appended-data": false
|
|
117
118
|
})
|
|
118
119
|
.options("back-end", { description: "Back-end to use" })
|
|
119
120
|
.choices("back-end", ["jsdom", "puppeteer", "webdriver-chromium", "webdriver-gecko", "puppeteer-firefox", "playwright-firefox", "playwright-chromium", "playwright-webkit"])
|
|
@@ -289,8 +290,10 @@ const args = require("yargs")
|
|
|
289
290
|
.boolean("insert-text-body")
|
|
290
291
|
.options("create-root-directory", { description: "Create a root directory based on the timestamp" })
|
|
291
292
|
.boolean("create-root-directory")
|
|
292
|
-
.options("extract-data-from-page", { description: "Extract compressed data from the page instead of fetching the page" })
|
|
293
|
+
.options("extract-data-from-page", { description: "Extract compressed data from the page instead of fetching the page in order to create universal self-extracting HTML files" })
|
|
293
294
|
.boolean("extract-data-from-page")
|
|
295
|
+
.options("prevent-appended-data", { description: "Prevent appending data after the compressed data when creating self-extracting HTML files" })
|
|
296
|
+
.boolean("prevent-appended-data")
|
|
294
297
|
.options("output-directory", { description: "Path to where to save files, this path must exist." })
|
|
295
298
|
.string("output-directory")
|
|
296
299
|
.argv;
|