root 3bf41bf355 update 2 years ago
..
example 3bf41bf355 update 2 years ago
LICENSE 3bf41bf355 update 2 years ago
README.markdown 3bf41bf355 update 2 years ago
index.js 3bf41bf355 update 2 years ago
package.json 3bf41bf355 update 2 years ago

README.markdown

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