Node.js · Junior · Question 10 of 75
What is libuv in Node.js?
- 1A JavaScript testing library
- ✓Correct answer: A C library that provides the event loop, asynchronous I/O and the thread pool
- 3The npm registry client
Explanation
libuv hides the differences between operating systems (epoll, kqueue, IOCP) and gives Node.js one event loop. It also runs some work, such as file system calls, in a thread pool.