The following works on Mac, but not Windows:
var prompt = require('cli-prompt')
prompt('press enter', function (val) {
console.log('you pressed enter')
})
If you enter a space, or any other character, before hitting enter, then Windows does capture the response. Something to do with handling line returns differently on Mac vs. Win?