editor

v1.0.0
launch $EDITOR in your program
text edit shell

editor

Launch $EDITOR in your program.

example

var editor = require('editor');
editor('beep.json', function (code, sig) {
    console.log('finished editing with code ' + code);
});

$ node edit.js

editor

finished editing with code 0

methods

var editor = require('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

npm i editor

Metadata

  • MIT
  • Whatever
  • James Halliday
  • released 4/20/2015

Downloads

Maintainers