Skip to content

Commit 8369622

Browse files
committed
Create commandHandlers.js
1 parent 2d25c95 commit 8369622

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/lib/commandHandlers.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)