tvl-depot/users/Profpatsch/lyric/src/index.ts

17 lines
305 B
TypeScript
Raw Normal View History

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));
}