tehmusimhujan

1.0.2 • Public • Published

TEA Boil Timer

This function takes two arguments:

  • boilTime: The desired boiling time for the tea in minutes (number).
  • callback (optional): A function to be called when the timer finishes (function).

The function first checks if boilTime is a valid number and throws an error if not. Then, it logs a message indicating the timer has started. It converts the boilTime in minutes to milliseconds and uses setTimeout to simulate the timer countdown.

When the timer finishes, it logs a message indicating the tea is ready and optionally calls the provided callback function.

Readme

Keywords

none

Package Sidebar

Install

npm i tehmusimhujan

Weekly Downloads

76

Version

1.0.2

License

ISC

Unpacked Size

19.5 kB

Total Files

3

Last publish

Collaborators

  • nodekurajin