@studio/editor

Launch $EDITOR in your program

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@studio/editor
001.1.15 years ago5 years agoMinified + gzip package size for @studio/editor in KB

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 (or opts.editor) for
file. When the editor exits, cb(code, sig) fires.

Install

With npm do:
npm install editor
License
MIT