Skip to content

Commit

Permalink
docs: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
c4spar committed May 14, 2021
1 parent 6ea60c6 commit 5991b6e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,13 @@ If `dzx` is called with `-w` or `--worker`, the script is executed inside an
isolated web worker. If enabled, you can also set explicit permissions for your
script.

```typescript
#!/usr/bin/env dzx --worker --allow-read
/// <reference path="https://deno.land/x/dzx/types.d.ts" />

console.log(`Hello from ${$.blue.bold("worker")}!`);
```

## Methods

- `` $`command` ``: Executes a shell command.
Expand Down

0 comments on commit 5991b6e

Please sign in to comment.