Skip to content
launch $EDITOR in your program
Branch: master
Clone or download
Latest commit 15200af Apr 21, 2015
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
LICENSE
README.markdown
index.js
package.json

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

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.