Skip to content

Commit 5991b6e

Browse files
committed
docs: update readme
1 parent 6ea60c6 commit 5991b6e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,13 @@ If `dzx` is called with `-w` or `--worker`, the script is executed inside an
138138
isolated web worker. If enabled, you can also set explicit permissions for your
139139
script.
140140

141+
```typescript
142+
#!/usr/bin/env dzx --worker --allow-read
143+
/// <reference path="https://deno.land/x/dzx/types.d.ts" />
144+
145+
console.log(`Hello from ${$.blue.bold("worker")}!`);
146+
```
147+
141148
## Methods
142149

143150
- `` $`command` ``: Executes a shell command.

0 commit comments

Comments
 (0)