@inquirer/external-editor

Edit strings with your preferred text editor via $VISUAL or $EDITOR

npmmacoslinuxwindows
Try with needOr install directly
Source

About

Edit a string with the users preferred text editor using $VISUAL or $ENVIRONMENT

Commands

external-editor

Examples

Edit a multi-line string with your default editor$ external-editor
Use in a Node.js script to get user input from editor$ node -e "const edit = require('@inquirer/external-editor'); edit('Initial content').then(result => console.log(result))"
Set custom editor before editing$ VISUAL=vim external-editor