2023 - Day 5

This commit is contained in:
2023-12-07 21:44:02 +01:00
parent 80a72cd5a7
commit 9e2016aa06
7 changed files with 645 additions and 0 deletions

8
2023/05/worker.ts Normal file
View File

@@ -0,0 +1,8 @@
//deno-lint-ignore ban-ts-comment
//@ts-ignore
self.onmessage = async (e) => {
const { filename } = e.data;
const text = await Deno.readTextFile(filename);
console.log(text);
self.close();
};