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