Editor In
Opens an editor, gets the result after the process has exited
Install:
npm install editor-in
Usage:
var editorIn = ; // Opens process.env.EDITOR;
API
This module exports a single function
editorIn( [options], callback )
Opens a temporary file in options.editor
or process.env.EDITOR
and returns the result.
Options:
// Options and defaults // Editor to use Ex: 'vim' editor: processenvEDITOR || 'vi' // Initial content for the editor content: '' // Prefix of tmp filename Ex: 'some-file-' tmpFilePrefix: '' // Suffix of tmp filename Ex: '.md' tmpFilePostfix: ''