Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
launch $EDITOR in your program
JavaScript
branch: master

1.0.0

latest commit 15200af2c4
@substack authored
Failed to load latest commit information.
example use __dirname
LICENSE fix the license
README.markdown pkginit-generated package.json
index.js fix for node 0.10
package.json 1.0.0

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

Something went wrong with that request. Please try again.