@studio/editor
v1.1.1
Published
Launch $EDITOR in your program
Downloads
2,641
Readme
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
) forfile
. When the editor exits,cb(code, sig)
fires.
Install
With npm do:
npm install editor
License
MIT