7 lines
214 B
TypeScript
7 lines
214 B
TypeScript
function readInput(day: string): string {
|
|
return Deno.readTextFileSync('./inputs/' + day + '.txt').trim()
|
|
}
|
|
|
|
const delay = (ms: number) => new Promise(res => setTimeout(res, ms));
|
|
|
|
export { readInput, delay };
|