Skip to content

Commit d558c35

Browse files
Add the work-in-progress Bun-based implementation
It doesn't have all the features of the Node-based implementation yet, but it's getting there and there are to-do items in the readme capturing what's missing.
1 parent 11d35bb commit d558c35

File tree

22 files changed

+1168
-355
lines changed

22 files changed

+1168
-355
lines changed

Block.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export type Block = {
2+
tag: string;
3+
meta: string;
4+
code: string;
5+
path?: string;
6+
};

demo/javascript-exception/readme.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# JavaScript exception
2+
3+
```javascript
4+
throw new Error('Hello, world!')
5+
```

demo/javascript-expression/readme.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# JavaScript expression
2+
3+
```javascript
4+
'Hello, world!'
5+
```

demo/shell/readme.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Shell
2+
3+
```sh
4+
echo "Hello, world!"
5+
```
6+
7+
```sh
8+
>&2 echo "Hello, world!"
9+
```

demo/stderr-file/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
stderr.txt

demo/stderr-file/readme.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Standard error stream to a file Hello World!
2+
3+
`stderr.txt`:
4+
5+
```stderr
6+
Hello, standard error!
7+
```

demo/stderr/readme.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Standard error stream Hello World!
2+
3+
```stderr
4+
Hello, standard error!
5+
```

demo/stdout-file/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
stdout.txt

demo/stdout-file/readme.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Standard output stream to a file Hello World!
2+
3+
`stdout.txt`:
4+
5+
```stdout
6+
Hello, standard output!
7+
```

demo/stdout/readme.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Standard output stream Hello World!
2+
3+
```stdout
4+
Hello, standard output!
5+
```

0 commit comments

Comments
 (0)