We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
commandHandlers.js
1 parent 2d25c95 commit 8369622Copy full SHA for 8369622
src/lib/commandHandlers.js
@@ -0,0 +1,8 @@
1
+import { getCategoriesFlags } from "./categoriesHandlers.js"
2
+
3
+const makeCommandFromURL = (url, options) => {
4
+ const isOptionsCategories = getCategoriesFlags(options?.categories)
5
+ return `lighthouse ${url} ${isOptionsCategories}--output json --disable-full-page-screenshot`
6
+}
7
8
+export { makeCommandFromURL }
0 commit comments