Skip to content

Commit 183ff33

Browse files
authored
Update README.md
1 parent c0d3ec3 commit 183ff33

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

README.md

+16-2
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,16 @@ npx @heymp/scratchpad@next ./my-test-file.js
1414
## Options
1515

1616
```bash
17-
Usage: @heymp/scratchpad@next <file> [options]
17+
Usage: @heymp/scratchpad@next <file> [options]
1818

1919
Arguments:
2020
file file to execute in the browser.
2121

2222
Options:
2323
--headless [boolean] specify running the browser in headless mode.
24-
--url [string] specify a specific url to execute the code in.
24+
--devtools [boolean] open browser devtools automatically.
25+
--url [string] specify a specific url to execute the code
26+
in.
2527
-V, --version output the version number
2628
-h, --help display help for command
2729
```
@@ -99,6 +101,18 @@ in your `.ts` files:
99101
/// <reference path="./node_modules/@heymp/scratchpad/types.d.ts" />
100102
```
101103

104+
## Config
105+
106+
An alternative to using the CLI flags, you can create `scratchpad.config.js`.
107+
108+
```js
109+
export default ({
110+
devtools: true,
111+
headless: false,
112+
url: 'https://www.google.com'
113+
});
114+
```
115+
102116
## Development
103117

104118
```bash

0 commit comments

Comments
 (0)