Please consider following this project's author, Jon Schlinkert, and consider starring the project to show your ️ and support. Node's built-in readline module is great for handling user input if you ...
A function to check if a keypress was the return/enter key (either on the numpad or the main keyboard). The function takes an event (generated by a keypress for example) and returns a boolean.