Studio Editor
š Launch $EDITOR
in your program.A fork of substack/node-editor.
Usage
const editor = require('@studio/editor');
editor('beep.json', function (code, sig) {
console.log('finished editing with code ' + code);
});
API
const editor = require('@studio/editor')
editor(file, opts={}, cb)
: Launch the$EDITOR
(oropts.editor
) for
file
. When the editor exits, cb(code, sig)
fires.Install
With npm do:npm install editor
License
MIT