heapwolf / prompt-sync

a synchronous prompt for node.js
MIT License
211 stars 42 forks source link

Use prompt.str to get the current prompt input #49

Open bavis-m opened 2 years ago

bavis-m commented 2 years ago

I want to be able to get the prompt content the user was editing after they hit ^C, so expose that as prompt.str