tvl-depot/users/Profpatsch/lyric/src/index.ts
Profpatsch ad711b15a0 chore(users/Profpatsch/lyric): add typescript linting rules
Change-Id: I9ab0336450519648f7a8edeec94bd64b78e2f05b
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12554
Tested-by: BuildkiteCI
Reviewed-by: Profpatsch <mail@profpatsch.de>
2024-10-05 13:49:38 +00:00

16 lines
305 B
TypeScript

import { tapBpm } from './tap-bpm.js';
function main() {
// subcommand for tap-bpm
if (process.argv[2] === 'tap-bpm') {
tapBpm();
}
}
main();
// sleep in a loop to block nodejs
console.log('Blocking event loop...');
while (true) {
await new Promise(resolve => setTimeout(resolve, 1000));
}