Repositorio del curso CCOM4030 el semestre B91 del proyecto Artesanías con el Instituto de Cultura

index.js 330B

12345678910111213141516
  1. #!/usr/bin/env node
  2. /**
  3. * Invokes the terminal "beep" sound once per second on every exact second.
  4. */
  5. process.title = 'beep'
  6. var cursor = require('../../')(process.stdout)
  7. function beep () {
  8. cursor.beep()
  9. setTimeout(beep, 1000 - (new Date()).getMilliseconds())
  10. }
  11. setTimeout(beep, 1000 - (new Date()).getMilliseconds())