npm install feross
TODO
MIT. Copyright (c) Feross Aboukhadijeh.
Make a console beep sound.
License: MIT License
npm install feross
TODO
MIT. Copyright (c) Feross Aboukhadijeh.
is it suppose to work in GIT BASH?
Hi, I am working on a JS CLI app utilizing beepbeep. The problem is the beep noise is not emitting. Here is my code:
const inquirer = require('inquirer');
var beep = require('beepbeep');
var timerCommand = [
{
type: 'input',
name: 'command',
message: 'How Many Minuetes Would You Like the Timer To Run (60min MAX) ๐ :'
}
];
class Timer {
play(){
inquirer.prompt(timerCommand).then(answers => {
let timeMin = parseInt(answers.command);
if(timeMin){
this.startTimer(timeMin);
}else{
console.log("Invalid Time");
}
})
}
startTimer(duration) {
let timeDuration = duration * 60;
var timer = timeDuration, minutes, seconds;
var refreshIntervalId = setInterval(function () {
minutes = parseInt(timer / 60, 10);
seconds = parseInt(timer % 60, 10);
minutes = minutes < 10 ? "0" + minutes : minutes;
seconds = seconds < 10 ? "0" + seconds : seconds;
console.log(minutes + ":" + seconds);
if (--timer < 0) {
console.log("TIMER IS UP");
beep(2);
clearInterval(refreshIntervalId);
}
}, 1000);
}
}
module.exports = Timer;
How will that be if instead of just beep sound, your custom error is spoken like a voice???
Is it possible? If yes will you implement this?
Is it implemented anywhere? If yes where?
I want my money back.
Great package - I use it for most of my projects.
I would love if you could also add support for "boop"?
What does "Restful" mean in the context of this library?!
Is it possible to change the beep frequency and duration with nodejs? Some languages have something like: Beep(hertz, milli)
(https://stackoverflow.com/questions/38883092/how-to-make-motherboard-beep-through-c-code)
Or
SoundBeep, Frequency, Duration
(AutoHotKey: https://www.autohotkey.com/docs/commands/SoundBeep.htm)
Hey there, just a suggestion: is it possible to define beep duration? I could really use a longer beep, e.g. three longs beeps error, two short beeps = success.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.