Skip to content

Commit 2f6627b

Browse files
committed
docs: add information on required permissions
1 parent 7c975af commit 2f6627b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,8 @@ import { bash } from "https://deno.land/x/bash/mod.ts";
4040
const result = await bash("echo 'hello world'", { stripTrailingNewline: true });
4141
console.log(result); // hello world\n
4242
```
43+
44+
## Required permissions
45+
46+
Using `bash` requires the `--allow-run` permission. This is because `bash` uses
47+
`Deno.run` to execute the underlying command.

0 commit comments

Comments
 (0)