blob: 6bab1c4590cd3d90eb24f5ef8336724613f3ea49 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import { tapBpm } from "./tap-bpm.js";
async function main() {
// subcommand for tap-bpm
if (process.argv[2] === "tap-bpm") {
await tapBpm();
}
}
await main();
// sleep in a loop to block nodejs
console.log("Blocking event loop...");
while (true) {
await new Promise((resolve) => setTimeout(resolve, 1000));
}
|