We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b095e31 commit 635b2e6Copy full SHA for 635b2e6
src/scripts/codeblock-to-json.ts
@@ -10,14 +10,15 @@
10
// to generate JS because we want to bundle other files into it. If we didn't
11
// bundle the files, we would need to do some weird stuff with paths for the
12
// import to work at run time, because the output path structure is different.
13
+import { readLines } from "https://deno.land/std/io/mod.ts";
14
+
15
import { parseCodeBlock } from "../parse-codeblock";
-import { readLines } from 'https://deno.land/std/io/buffer.ts'
16
17
const { args } = Deno;
18
-const lines: string[] = []
19
+const lines: string[] = [];
20
for await (const line of readLines(Deno.stdin)) {
- lines.push(line)
21
+ lines.push(line);
22
}
23
24
const content = parseCodeBlock(lines);
0 commit comments